gpio/omap: (re)fix wakeups on level-triggered GPIOs
authorKevin Hilman <khilman@ti.com>
Thu, 17 May 2012 23:42:16 +0000 (16:42 -0700)
committerKevin Hilman <khilman@ti.com>
Fri, 18 May 2012 14:05:06 +0000 (07:05 -0700)
commitb3c64bc30af67ed328a8d919e41160942b870451
treececade8bda2dcfd45cb05d1d3bd7f89db677ded6
parent22770de11cb13e7120f973bca6c800de371a6717
gpio/omap: (re)fix wakeups on level-triggered GPIOs

commit 1b1287032 (gpio/omap: fix missing check in *_runtime_suspend())
broke wakeups on level-triggered GPIOs by adding the enabled
non-wakeup GPIO check before the workaround that enables wakeups
on level-triggered IRQs, effectively disabling that workaround.

To fix, move the enabled non-wakeup GPIO check after the
level-triggered IRQ workaround.

Reported-by: Tony Lindgren <tony@atomide.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Tested-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/gpio/gpio-omap.c