GPIO: OMAP: fix setting IRQWAKEN bits for OMAP4
authorColin Cross <ccross@android.com>
Mon, 6 Jun 2011 20:38:17 +0000 (13:38 -0700)
committerKevin Hilman <khilman@ti.com>
Mon, 6 Jun 2011 23:12:23 +0000 (16:12 -0700)
commit0622b25bf071fd83c6eef6b61fb5f3f12a418528
treeb94745ded735e4347ee37b51e5e382e3a6d81432
parentd52b31deffe1956ac62d0b81b915c9b52cffb814
GPIO: OMAP: fix setting IRQWAKEN bits for OMAP4

Setting the IRQWAKEN bit was overwriting previous IRQWAKEN bits,
causing only the last bit set to take effect, resulting in lost
wakeups when the GPIO controller is in idle.

Replace direct writes to IRQWAKEN with MOD_REG_BIT calls to
perform a read-modify-write on the register.

Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c