diff options
| -rw-r--r-- | drivers/rtc/rtc-isl1208.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index afb7cfa85ccc..c016ad81767a 100644 --- a/drivers/rtc/rtc-isl1208.c +++ b/drivers/rtc/rtc-isl1208.c | |||
| @@ -506,6 +506,7 @@ isl1208_rtc_interrupt(int irq, void *data) | |||
| 506 | { | 506 | { |
| 507 | unsigned long timeout = jiffies + msecs_to_jiffies(1000); | 507 | unsigned long timeout = jiffies + msecs_to_jiffies(1000); |
| 508 | struct i2c_client *client = data; | 508 | struct i2c_client *client = data; |
| 509 | struct rtc_device *rtc = i2c_get_clientdata(client); | ||
| 509 | int handled = 0, sr, err; | 510 | int handled = 0, sr, err; |
| 510 | 511 | ||
| 511 | /* | 512 | /* |
| @@ -528,6 +529,8 @@ isl1208_rtc_interrupt(int irq, void *data) | |||
| 528 | if (sr & ISL1208_REG_SR_ALM) { | 529 | if (sr & ISL1208_REG_SR_ALM) { |
| 529 | dev_dbg(&client->dev, "alarm!\n"); | 530 | dev_dbg(&client->dev, "alarm!\n"); |
| 530 | 531 | ||
| 532 | rtc_update_irq(rtc, 1, RTC_IRQF | RTC_AF); | ||
| 533 | |||
| 531 | /* Clear the alarm */ | 534 | /* Clear the alarm */ |
| 532 | sr &= ~ISL1208_REG_SR_ALM; | 535 | sr &= ~ISL1208_REG_SR_ALM; |
| 533 | sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, sr); | 536 | sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, sr); |
