]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/omap: cleanup _set_gpio_wakeup(), remove ifdefs
authorKevin Hilman <khilman@ti.com>
Fri, 22 Apr 2011 16:45:27 +0000 (09:45 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 16 Jun 2011 18:14:05 +0000 (11:14 -0700)
commit5b2201c66a52dca203a3cdb9fb62a46d6df6405e
tree9c6758c4c425d0d04ff3c478dba3244f8af32b8f
parentef0309d6a31bd0535800bd147c8ba6df4756f8b9
gpio/omap: cleanup _set_gpio_wakeup(), remove ifdefs

Make _set_gpio_wakeup() generic by removing ifdefs.  Code for the
various SoCs/bank-methods was already the same, except for the
non-wakeup GPIO checking.  But that flag is set on a per-SoC basis, so
can be used for all SoCs.

While here, use dev_err() and remove GPIO bank calculation assumption
based on subtracting bank pointers.

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