diff options
author | John Stultz <john.stultz@linaro.org> | 2011-02-03 15:02:07 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2011-03-09 14:23:35 -0500 |
commit | 696160fec162601d06940862b5b3aa4460344c1b (patch) | |
tree | 63c5d1d87f140b6a989256727b62071dd19d894b /drivers/rtc/rtc-pxa.c | |
parent | 80d4bb515b78f38738f3378fd1be6039063ab040 (diff) |
RTC: Cleanup rtc_class_ops->irq_set_freq()
With the generic rtc code now emulating PIE mode irqs via an
hrtimer, no one calls the rtc_class_ops->irq_set_freq call.
This patch removes the hook and deletes the driver functions
if no one else calls them.
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-pxa.c')
-rw-r--r-- | drivers/rtc/rtc-pxa.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c index b216ae5389c8..a1fdc802598a 100644 --- a/drivers/rtc/rtc-pxa.c +++ b/drivers/rtc/rtc-pxa.c | |||
@@ -209,20 +209,6 @@ static void pxa_rtc_release(struct device *dev) | |||
209 | free_irq(pxa_rtc->irq_1Hz, dev); | 209 | free_irq(pxa_rtc->irq_1Hz, dev); |
210 | } | 210 | } |
211 | 211 | ||
212 | static int pxa_periodic_irq_set_freq(struct device *dev, int freq) | ||
213 | { | ||
214 | struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); | ||
215 | int period_ms; | ||
216 | |||
217 | if (freq < 1 || freq > MAXFREQ_PERIODIC) | ||
218 | return -EINVAL; | ||
219 | |||
220 | period_ms = 1000 / freq; | ||
221 | rtc_writel(pxa_rtc, PIAR, period_ms); | ||
222 | |||
223 | return 0; | ||
224 | } | ||
225 | |||
226 | static int pxa_alarm_irq_enable(struct device *dev, unsigned int enabled) | 212 | static int pxa_alarm_irq_enable(struct device *dev, unsigned int enabled) |
227 | { | 213 | { |
228 | struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); | 214 | struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); |
@@ -336,7 +322,6 @@ static const struct rtc_class_ops pxa_rtc_ops = { | |||
336 | .alarm_irq_enable = pxa_alarm_irq_enable, | 322 | .alarm_irq_enable = pxa_alarm_irq_enable, |
337 | .update_irq_enable = pxa_update_irq_enable, | 323 | .update_irq_enable = pxa_update_irq_enable, |
338 | .proc = pxa_rtc_proc, | 324 | .proc = pxa_rtc_proc, |
339 | .irq_set_freq = pxa_periodic_irq_set_freq, | ||
340 | }; | 325 | }; |
341 | 326 | ||
342 | static int __init pxa_rtc_probe(struct platform_device *pdev) | 327 | static int __init pxa_rtc_probe(struct platform_device *pdev) |