Merge branch 'iomap' into cleanup
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-omap2 / pm24xx.c
index 7e367225d250fc0969c5b08edb6b778068923cd9..bee8bb9111ebc71dd48fda034794bb0b3b87a78d 100644 (file)
@@ -231,7 +231,6 @@ static int omap2_can_sleep(void)
 
 static void omap2_pm_idle(void)
 {
-       local_irq_disable();
        local_fiq_disable();
 
        if (!omap2_can_sleep()) {
@@ -248,7 +247,6 @@ static void omap2_pm_idle(void)
 
 out:
        local_fiq_enable();
-       local_irq_enable();
 }
 
 #ifdef CONFIG_SUSPEND
@@ -447,7 +445,7 @@ static int __init omap2_pm_init(void)
        }
 
        suspend_set_ops(&omap_pm_ops);
-       pm_idle = omap2_pm_idle;
+       arm_pm_idle = omap2_pm_idle;
 
        return 0;
 }