]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/rtc/rtc-omap.c
ep93xx: some minor cleanups to the ep93xx eth driver
[linux-2.6-omap-h63xx.git] / drivers / rtc / rtc-omap.c
index eac5fb1fc02f4c9a66ff4d8e4bffacea3cee9715..d59880d44fba26e3555c46d000c13a65e12d3ec4 100644 (file)
@@ -279,9 +279,8 @@ static int omap_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
        local_irq_enable();
 
        bcd2tm(&alm->time);
-       alm->pending = !!(rtc_read(OMAP_RTC_INTERRUPTS_REG)
+       alm->enabled = !!(rtc_read(OMAP_RTC_INTERRUPTS_REG)
                        & OMAP_RTC_INTERRUPTS_IT_ALARM);
-       alm->enabled = alm->pending && device_may_wakeup(dev);
 
        return 0;
 }