OMAP2/3: GPIO: generalize prepare for idle
commit104c6c37ffc9ad73a3d8c21a3b15c3b363c7145e
authorKevin Hilman <khilman@deeprootsystems.com>
Tue, 27 Jan 2009 19:09:24 +0000 (27 11:09 -0800)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 23 Oct 2009 18:19:38 +0000 (23 11:19 -0700)
tree404eeb1e74e61e190d51000f900e74e0c69f8ab9
parentcd5268f5b4106b094f75b42d067b33bef90ea5f7
OMAP2/3: GPIO: generalize prepare for idle

Currently, the GPIO 'prepare' hook is only called when going to
off-mode, while the function is called 'prepare_for_retention.'  This
patch renames the function to 'prepare_for_idle' and calls it for any
powersate != PWRDM_POWER_ON passing in the powerstate.

The hook itself is then responsible for doing various preparation
based on the powerstate.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm24xx.c
arch/arm/mach-omap2/pm34xx.c
arch/arm/plat-omap/gpio.c
arch/arm/plat-omap/include/plat/gpio.h