]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/rtc/rtc-pcf8563.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-beck.git] / drivers / rtc / rtc-pcf8563.c
index 5a197d9dc7e727b881740b5715e80aa31155ce7e..c2ef0a22ee94639a0db6d3f1e0334d26947059cb 100644 (file)
@@ -167,8 +167,8 @@ static irqreturn_t pcf8563_irq(int irq, void *dev_id)
        char pending;
 
        err = pcf8563_get_alarm_mode(pcf8563->client, NULL, &pending);
-       if (err < 0)
-               return err;
+       if (err)
+               return IRQ_NONE;
 
        if (pending) {
                rtc_update_irq(pcf8563->rtc, 1, RTC_IRQF | RTC_AF);