mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
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>
This commit is contained in:
parent
34fd57bffe
commit
daa37cee79
@ -363,6 +363,9 @@ int __init omap3_idle_init(void)
|
|||||||
per_pd = pwrdm_lookup("per_pwrdm");
|
per_pd = pwrdm_lookup("per_pwrdm");
|
||||||
cam_pd = pwrdm_lookup("cam_pwrdm");
|
cam_pd = pwrdm_lookup("cam_pwrdm");
|
||||||
|
|
||||||
|
if (!mpu_pd || !core_pd || !per_pd || !cam_pd)
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
cpuidle_register_driver(&omap3_idle_driver);
|
cpuidle_register_driver(&omap3_idle_driver);
|
||||||
|
|
||||||
dev = &per_cpu(omap3_idle_dev, smp_processor_id());
|
dev = &per_cpu(omap3_idle_dev, smp_processor_id());
|
||||||
|
Loading…
Reference in New Issue
Block a user