gpio/omap: fix missing check in *_runtime_suspend()
authorTarun Kanti DebBarma <[email protected]>
Fri, 27 Apr 2012 14:13:38 +0000 (19:43 +0530)
committerKevin Hilman <[email protected]>
Sat, 12 May 2012 00:08:40 +0000 (17:08 -0700)
commit1b1287032df3a69d3ef9a486b444f4ffcca50d01
tree7b714cfdfb8d2a41d0947fb7e6d05ae019b12e2f
parent4e962e8998cc6cb5e58beae5feb6a65cb1a27f26
gpio/omap: fix missing check in *_runtime_suspend()

We do checking for bank->enabled_non_wakeup_gpios in order
to skip redundant operations. Somehow, the check got missed
while doing the cleanup series.

Just to make sure that we do context restore correctly in
*_runtime_resume(), the bank->workaround_enabled check is
moved after context restore. Otherwise, it would prevent
context restore when bank->enabled_non_wakeup_gpios is 0.

Cc: Kevin Hilman <[email protected]>
Cc: Tony Lindgren <[email protected]>
Cc: Santosh Shilimkar <[email protected]>
Cc: Cousson, Benoit <[email protected]>
Cc: Grant Likely <[email protected]>
Signed-off-by: Tarun Kanti DebBarma <[email protected]>
Reviewed-by: Santosh Shilimkar <[email protected]>
Tested-by: Govindraj.R <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
drivers/gpio/gpio-omap.c