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>
This commit is contained in:
@@ -315,21 +315,6 @@ static int wm831x_rtc_alarm_irq_enable(struct device *dev,
|
||||
return wm831x_rtc_stop_alarm(wm831x_rtc);
|
||||
}
|
||||
|
||||
static int wm831x_rtc_update_irq_enable(struct device *dev,
|
||||
unsigned int enabled)
|
||||
{
|
||||
struct wm831x_rtc *wm831x_rtc = dev_get_drvdata(dev);
|
||||
int val;
|
||||
|
||||
if (enabled)
|
||||
val = 1 << WM831X_RTC_PINT_FREQ_SHIFT;
|
||||
else
|
||||
val = 0;
|
||||
|
||||
return wm831x_set_bits(wm831x_rtc->wm831x, WM831X_RTC_CONTROL,
|
||||
WM831X_RTC_PINT_FREQ_MASK, val);
|
||||
}
|
||||
|
||||
static irqreturn_t wm831x_alm_irq(int irq, void *data)
|
||||
{
|
||||
struct wm831x_rtc *wm831x_rtc = data;
|
||||
@@ -354,7 +339,6 @@ static const struct rtc_class_ops wm831x_rtc_ops = {
|
||||
.read_alarm = wm831x_rtc_readalarm,
|
||||
.set_alarm = wm831x_rtc_setalarm,
|
||||
.alarm_irq_enable = wm831x_rtc_alarm_irq_enable,
|
||||
.update_irq_enable = wm831x_rtc_update_irq_enable,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
مرجع در شماره جدید
Block a user