gpio/omap: fix incorrect context restore logic in omap_gpio_runtime_*
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Mon, 5 Mar 2012 10:30:54 +0000 (16:00 +0530)
committerTarun Kanti DebBarma <tarun.kanti@ti.com>
Tue, 20 Mar 2012 10:02:46 +0000 (15:32 +0530)
commit960edffe29dfd845ee532ee51398592cba96d701
tree6763cad852af2d069335a2398e7978144ac4c812
parent2c836f7ea5e7b5eec2a798e02b1d76ea791fa094
gpio/omap: fix incorrect context restore logic in omap_gpio_runtime_*

In omap_gpio_runtime_suspend/resume() the context save/restore should
be independent of bank->enabled_non_wakeup_gpios. This was preventing
context restore of GPIO lines which are not wakeup enabled.

Reported-by: Govindraj Raja <govindraj.raja@ti.com>
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c