ARM: OMAP3: PM: fix pwrdm_post_transition call sequence
authorCharulatha V <charu@ti.com>
Tue, 13 Sep 2011 13:02:37 +0000 (18:32 +0530)
committerKevin Hilman <khilman@ti.com>
Fri, 7 Oct 2011 20:37:06 +0000 (13:37 -0700)
commitff2f8e5ffb23de6e2284f31651447cb80a4c9d1b
tree64b35ef55b2ad58c4247283ecf264ff3273d64e9
parent976d167615b64e14bc1491ca51d424e2ba9a5e84
ARM: OMAP3: PM: fix pwrdm_post_transition call sequence

The context lost count is modified in omap_sram_idle() path when
pwrdm_post_transition() is called. But pwrdm_post_transition() is called
only after omap_gpio_resume_after_idle() is called. Correct this so that
context lost count is modified before calling omap_gpio_resume_after_idle().

This would be useful when OMAP GPIO save/restore context is called by
the OMAP GPIO driver itself.

Signed-off-by: Charulatha V <charu@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/pm34xx.c