ARM: OMAP3: cpuidle - check the powerdomain lookup
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 4 May 2012 17:18:40 +0000 (19:18 +0200)
committerKevin Hilman <khilman@ti.com>
Fri, 4 May 2012 21:07:10 +0000 (14:07 -0700)
commitdaa37cee791722711bf15b9635d007014e73ad3d
tree4728b4f12bed175af600d9c1f2ed44117c1de146
parent34fd57bffe60807f5639fc8bbe7a46ce97e45f50
ARM: OMAP3: cpuidle - check the powerdomain lookup

At init time, check the powerdomains lookup is successful otherwise
exit the cpuidle driver init function with -ENODEV like what is done for the
omap3 cpuidle driver.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/cpuidle34xx.c