diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm24xx.c')
-rw-r--r-- | arch/arm/mach-omap2/pm24xx.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index b8822f8b2891..a4eb5c280435 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c | |||
@@ -82,13 +82,7 @@ static int omap2_fclks_active(void) | |||
82 | f1 = omap2_cm_read_mod_reg(CORE_MOD, CM_FCLKEN1); | 82 | f1 = omap2_cm_read_mod_reg(CORE_MOD, CM_FCLKEN1); |
83 | f2 = omap2_cm_read_mod_reg(CORE_MOD, OMAP24XX_CM_FCLKEN2); | 83 | f2 = omap2_cm_read_mod_reg(CORE_MOD, OMAP24XX_CM_FCLKEN2); |
84 | 84 | ||
85 | /* Ignore UART clocks. These are handled by UART core (serial.c) */ | 85 | return (f1 | f2) ? 1 : 0; |
86 | f1 &= ~(OMAP24XX_EN_UART1_MASK | OMAP24XX_EN_UART2_MASK); | ||
87 | f2 &= ~OMAP24XX_EN_UART3_MASK; | ||
88 | |||
89 | if (f1 | f2) | ||
90 | return 1; | ||
91 | return 0; | ||
92 | } | 86 | } |
93 | 87 | ||
94 | static void omap2_enter_full_retention(void) | 88 | static void omap2_enter_full_retention(void) |
@@ -232,7 +226,6 @@ static int omap2_can_sleep(void) | |||
232 | 226 | ||
233 | static void omap2_pm_idle(void) | 227 | static void omap2_pm_idle(void) |
234 | { | 228 | { |
235 | local_irq_disable(); | ||
236 | local_fiq_disable(); | 229 | local_fiq_disable(); |
237 | 230 | ||
238 | if (!omap2_can_sleep()) { | 231 | if (!omap2_can_sleep()) { |
@@ -249,7 +242,6 @@ static void omap2_pm_idle(void) | |||
249 | 242 | ||
250 | out: | 243 | out: |
251 | local_fiq_enable(); | 244 | local_fiq_enable(); |
252 | local_irq_enable(); | ||
253 | } | 245 | } |
254 | 246 | ||
255 | #ifdef CONFIG_SUSPEND | 247 | #ifdef CONFIG_SUSPEND |
@@ -468,7 +460,7 @@ static int __init omap2_pm_init(void) | |||
468 | } | 460 | } |
469 | 461 | ||
470 | suspend_set_ops(&omap_pm_ops); | 462 | suspend_set_ops(&omap_pm_ops); |
471 | pm_idle = omap2_pm_idle; | 463 | arm_pm_idle = omap2_pm_idle; |
472 | 464 | ||
473 | return 0; | 465 | return 0; |
474 | } | 466 | } |