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-vr41xx.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-vr41xx.c')
| -rw-r--r-- | drivers/rtc/rtc-vr41xx.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/rtc/rtc-vr41xx.c b/drivers/rtc/rtc-vr41xx.c index 86f14909f9db..c5698cda366a 100644 --- a/drivers/rtc/rtc-vr41xx.c +++ b/drivers/rtc/rtc-vr41xx.c | |||
| @@ -207,26 +207,6 @@ static int vr41xx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) | |||
| 207 | return 0; | 207 | return 0; |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | static int vr41xx_rtc_irq_set_freq(struct device *dev, int freq) | ||
| 211 | { | ||
| 212 | u64 count; | ||
| 213 | |||
| 214 | if (!is_power_of_2(freq)) | ||
| 215 | return -EINVAL; | ||
| 216 | count = RTC_FREQUENCY; | ||
| 217 | do_div(count, freq); | ||
| 218 | |||
| 219 | spin_lock_irq(&rtc_lock); | ||
| 220 | |||
| 221 | periodic_count = count; | ||
| 222 | rtc1_write(RTCL1LREG, periodic_count); | ||
| 223 | rtc1_write(RTCL1HREG, periodic_count >> 16); | ||
| 224 | |||
| 225 | spin_unlock_irq(&rtc_lock); | ||
| 226 | |||
| 227 | return 0; | ||
| 228 | } | ||
| 229 | |||
| 230 | static int vr41xx_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) | 210 | static int vr41xx_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) |
| 231 | { | 211 | { |
| 232 | switch (cmd) { | 212 | switch (cmd) { |
| @@ -298,7 +278,6 @@ static const struct rtc_class_ops vr41xx_rtc_ops = { | |||
| 298 | .set_time = vr41xx_rtc_set_time, | 278 | .set_time = vr41xx_rtc_set_time, |
| 299 | .read_alarm = vr41xx_rtc_read_alarm, | 279 | .read_alarm = vr41xx_rtc_read_alarm, |
| 300 | .set_alarm = vr41xx_rtc_set_alarm, | 280 | .set_alarm = vr41xx_rtc_set_alarm, |
| 301 | .irq_set_freq = vr41xx_rtc_irq_set_freq, | ||
| 302 | }; | 281 | }; |
| 303 | 282 | ||
| 304 | static int __devinit rtc_probe(struct platform_device *pdev) | 283 | static int __devinit rtc_probe(struct platform_device *pdev) |
