diff options
author | John Stultz <john.stultz@linaro.org> | 2011-02-03 15:13:50 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2011-03-09 14:23:37 -0500 |
commit | 51ba60c5bb3b0f71bee26404ddc22d8e4109e88a (patch) | |
tree | 27465aa6427981e542df0a9822ae634fe225a838 /drivers/rtc/rtc-ds3232.c | |
parent | 696160fec162601d06940862b5b3aa4460344c1b (diff) |
RTC: Cleanup rtc_class_ops->update_irq_enable()
Now that the generic code handles UIE mode irqs via periodic
alarm interrupts, no one calls the
rtc_class_ops->update_irq_enable() method anymore.
This patch removes the driver hooks and implementations of
update_irq_enable if no one else is calling it.
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Alessandro Zummo <a.zummo@towertech.it>
CC: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
CC: rtc-linux@googlegroups.com
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/rtc/rtc-ds3232.c')
-rw-r--r-- | drivers/rtc/rtc-ds3232.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index 950735415a7c..27b7bf672ac6 100644 --- a/drivers/rtc/rtc-ds3232.c +++ b/drivers/rtc/rtc-ds3232.c | |||
@@ -339,23 +339,6 @@ static int ds3232_alarm_irq_enable(struct device *dev, unsigned int enabled) | |||
339 | return 0; | 339 | return 0; |
340 | } | 340 | } |
341 | 341 | ||
342 | static int ds3232_update_irq_enable(struct device *dev, unsigned int enabled) | ||
343 | { | ||
344 | struct i2c_client *client = to_i2c_client(dev); | ||
345 | struct ds3232 *ds3232 = i2c_get_clientdata(client); | ||
346 | |||
347 | if (client->irq <= 0) | ||
348 | return -EINVAL; | ||
349 | |||
350 | if (enabled) | ||
351 | ds3232->rtc->irq_data |= RTC_UF; | ||
352 | else | ||
353 | ds3232->rtc->irq_data &= ~RTC_UF; | ||
354 | |||
355 | ds3232_update_alarm(client); | ||
356 | return 0; | ||
357 | } | ||
358 | |||
359 | static irqreturn_t ds3232_irq(int irq, void *dev_id) | 342 | static irqreturn_t ds3232_irq(int irq, void *dev_id) |
360 | { | 343 | { |
361 | struct i2c_client *client = dev_id; | 344 | struct i2c_client *client = dev_id; |
@@ -406,7 +389,6 @@ static const struct rtc_class_ops ds3232_rtc_ops = { | |||
406 | .read_alarm = ds3232_read_alarm, | 389 | .read_alarm = ds3232_read_alarm, |
407 | .set_alarm = ds3232_set_alarm, | 390 | .set_alarm = ds3232_set_alarm, |
408 | .alarm_irq_enable = ds3232_alarm_irq_enable, | 391 | .alarm_irq_enable = ds3232_alarm_irq_enable, |
409 | .update_irq_enable = ds3232_update_irq_enable, | ||
410 | }; | 392 | }; |
411 | 393 | ||
412 | static int __devinit ds3232_probe(struct i2c_client *client, | 394 | static int __devinit ds3232_probe(struct i2c_client *client, |