nomadik-gpio: fix wake/enable after trigger type change

The nomadik-gpio driver does not correctly change the enable and wake
masks when set_irq_type() is called after the irq or wake has been
enabled.

Fix this by backporting the corrected version from linux-next.

ST-Ericsson ID: AP264622

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1797
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Change-Id: I034a71ea2d74cd54dac027868f9562467942b9f9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2626
1 file changed