aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-cmos.c
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2011-02-03 15:13:50 -0500
committerJohn Stultz <john.stultz@linaro.org>2011-03-09 14:23:37 -0500
commit51ba60c5bb3b0f71bee26404ddc22d8e4109e88a (patch)
tree27465aa6427981e542df0a9822ae634fe225a838 /drivers/rtc/rtc-cmos.c
parent696160fec162601d06940862b5b3aa4460344c1b (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-cmos.c')
-rw-r--r--drivers/rtc/rtc-cmos.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index bdb1f8e2042a..dc2a0ba969ce 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -394,25 +394,6 @@ static int cmos_alarm_irq_enable(struct device *dev, unsigned int enabled)
394 return 0; 394 return 0;
395} 395}
396 396
397static int cmos_update_irq_enable(struct device *dev, unsigned int enabled)
398{
399 struct cmos_rtc *cmos = dev_get_drvdata(dev);
400 unsigned long flags;
401
402 if (!is_valid_irq(cmos->irq))
403 return -EINVAL;
404
405 spin_lock_irqsave(&rtc_lock, flags);
406
407 if (enabled)
408 cmos_irq_enable(cmos, RTC_UIE);
409 else
410 cmos_irq_disable(cmos, RTC_UIE);
411
412 spin_unlock_irqrestore(&rtc_lock, flags);
413 return 0;
414}
415
416#if defined(CONFIG_RTC_INTF_PROC) || defined(CONFIG_RTC_INTF_PROC_MODULE) 397#if defined(CONFIG_RTC_INTF_PROC) || defined(CONFIG_RTC_INTF_PROC_MODULE)
417 398
418static int cmos_procfs(struct device *dev, struct seq_file *seq) 399static int cmos_procfs(struct device *dev, struct seq_file *seq)
@@ -458,7 +439,6 @@ static const struct rtc_class_ops cmos_rtc_ops = {
458 .set_alarm = cmos_set_alarm, 439 .set_alarm = cmos_set_alarm,
459 .proc = cmos_procfs, 440 .proc = cmos_procfs,
460 .alarm_irq_enable = cmos_alarm_irq_enable, 441 .alarm_irq_enable = cmos_alarm_irq_enable,
461 .update_irq_enable = cmos_update_irq_enable,
462}; 442};
463 443
464/*----------------------------------------------------------------*/ 444/*----------------------------------------------------------------*/