ARM: OMAP2+: Sync hwmod state with the pm_runtime and omap_device state
authorRajendra Nayak <rnayak@ti.com>
Mon, 29 Jul 2013 05:01:51 +0000 (23:01 -0600)
committerPaul Walmsley <paul@pwsan.com>
Tue, 30 Jul 2013 11:13:36 +0000 (05:13 -0600)
commit7268032dfb1180fca6e91a738380b7ac53684247
tree520d23552c2633dc22b6684d2d2a75ee07384d9c
parentf66e329d889fce165074f677509d449fc92ff7b9
ARM: OMAP2+: Sync hwmod state with the pm_runtime and omap_device state

Some hwmods which are marked with HWMOD_INIT_NO_IDLE are left in enabled
state post setup(). When a omap_device gets created for such hwmods
make sure the omap_device and pm_runtime states are also in sync for such
hwmods by doing a omap_device_enable() and pm_runtime_set_active() for the
device.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Tested-by: Mark Jackson <mpfj-list@newflow.co.uk>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_device.c