drivers/rtc/rtc-88pm860x.c: fix rtc irq enable callback
authorJett.Zhou <[email protected]>
Thu, 5 Apr 2012 21:25:08 +0000 (14:25 -0700)
committerLinus Torvalds <[email protected]>
Thu, 5 Apr 2012 22:25:50 +0000 (15:25 -0700)
According to 88pm860x spec, rtc alarm irq enable control is bit3 for
RTC_ALARM_EN, so fix it.

Signed-off-by: Jett.Zhou <[email protected]>
Cc: Axel Lin <[email protected]>
Cc: Haojian Zhuang <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-88pm860x.c

index f04761e6622dddcc34a3e860b7559ea410a9d113..8b72b4cd83d509d1f4c85d24e09b1fade830aaf9 100644 (file)
@@ -72,9 +72,9 @@ static int pm860x_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
        struct pm860x_rtc_info *info = dev_get_drvdata(dev);
 
        if (enabled)
-               pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM, ALARM);
+               pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM_EN, ALARM_EN);
        else
-               pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM, 0);
+               pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM_EN, 0);
        return 0;
 }