On Thursday 04 August 2011 04:34 PM, Tarun Kanti DebBarma wrote:
From: Charulatha V<ch...@ti.com>

In omap3, save/restore context is implemented for GPIO banks 2-6 as GPIO bank1
is in wakeup domain. Instead of identifying bank's power domain by bank id,
use 'loses_context' flag which is filled by pwrdm_can_ever_lose_context()
during dev_init.

For getting the powerdomain pointer, omap_hwmod_get_pwrdm() is used.
omap_device_get_pwrdm() could not be used as the pwrdm information needs to be
filled in pdata, whereas omap_device_get_pwrdm() could be used only after
omap_device_build() call.

Signed-off-by: Charulatha V<ch...@ti.com>
---
  arch/arm/mach-omap2/gpio.c             |    6 ++++++
  arch/arm/plat-omap/include/plat/gpio.h |    1 +
  drivers/gpio/gpio-omap.c               |   13 ++++++-------
  3 files changed, 13 insertions(+), 7 deletions(-)

Nice change.
Reviewed-by: Santosh Shilimkar <santosh.shilim...@ti.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to