OMAP1: PM: register notifiers with generic clock ops even when !PM_RUNTIME
authorKevin Hilman <khilman@ti.com>
Tue, 14 Jun 2011 12:53:18 +0000 (05:53 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 14 Jun 2011 12:53:18 +0000 (05:53 -0700)
commite9e35c5a2b2c803b5e2f25906d8ffe110670ceb6
tree0e119edbf03705b11b9af3c2c558ba98aefe6eda
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2
OMAP1: PM: register notifiers with generic clock ops even when !PM_RUNTIME

When runtime PM is disabled, device clocks need to be enabled on
device add and disabled on device remove.  This currently is not
happening because in the !PM_RUNTIME case, no notifiers are registered
for OMAP1 devices.

Fix this by ensuring notifiers are registered, even in the !PM_RUNTIME case.

Reported-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/Makefile
arch/arm/mach-omap1/pm_bus.c