]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/rtc/rtc-twl4030.c
Merge current mainline tree into linux-omap tree
[linux-2.6-omap-h63xx.git] / drivers / rtc / rtc-twl4030.c
index 8ce5f74ee45b3b09fe357fb353b5fe607f8bec4e..c77ee1f9845c986cc3ca388e9ca8321a83fcd14c 100644 (file)
@@ -506,8 +506,9 @@ static int __devexit twl4030_rtc_remove(struct platform_device *pdev)
 
 static void twl4030_rtc_shutdown(struct platform_device *pdev)
 {
-       mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M |
-                        BIT_RTC_INTERRUPTS_REG_IT_ALARM_M);
+       /* mask timer interrupts, but leave alarm interrupts on to enable
+          power-on when alarm is triggered */
+       mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
 }
 
 #ifdef CONFIG_PM