diff options
author | John Stultz <john.stultz@linaro.org> | 2011-02-04 19:16:12 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2011-03-09 14:24:54 -0500 |
commit | e428c6a2772bcf6b022baf7c8267cca3634c0c3e (patch) | |
tree | e53361c43ae67102e1050361ef432ac0401f8191 /drivers/rtc/rtc-sa1100.c | |
parent | 51ba60c5bb3b0f71bee26404ddc22d8e4109e88a (diff) |
RTC: Clean out UIE icotl implementations
With the generic RTC rework, the UIE mode irqs are handled
in the generic layer, and only hardware specific ioctls
get passed down to the rtc driver layer.
So this patch removes the UIE mode ioctl handling in the rtc
driver layer, which never get used.
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-sa1100.c')
-rw-r--r-- | drivers/rtc/rtc-sa1100.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c index d1a2b0bc3b24..a9189337a2c5 100644 --- a/drivers/rtc/rtc-sa1100.c +++ b/drivers/rtc/rtc-sa1100.c | |||
@@ -293,24 +293,6 @@ static void sa1100_rtc_release(struct device *dev) | |||
293 | } | 293 | } |
294 | 294 | ||
295 | 295 | ||
296 | static int sa1100_rtc_ioctl(struct device *dev, unsigned int cmd, | ||
297 | unsigned long arg) | ||
298 | { | ||
299 | switch (cmd) { | ||
300 | case RTC_UIE_OFF: | ||
301 | spin_lock_irq(&sa1100_rtc_lock); | ||
302 | RTSR &= ~RTSR_HZE; | ||
303 | spin_unlock_irq(&sa1100_rtc_lock); | ||
304 | return 0; | ||
305 | case RTC_UIE_ON: | ||
306 | spin_lock_irq(&sa1100_rtc_lock); | ||
307 | RTSR |= RTSR_HZE; | ||
308 | spin_unlock_irq(&sa1100_rtc_lock); | ||
309 | return 0; | ||
310 | } | ||
311 | return -ENOIOCTLCMD; | ||
312 | } | ||
313 | |||
314 | static int sa1100_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) | 296 | static int sa1100_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) |
315 | { | 297 | { |
316 | spin_lock_irq(&sa1100_rtc_lock); | 298 | spin_lock_irq(&sa1100_rtc_lock); |
@@ -386,7 +368,6 @@ static const struct rtc_class_ops sa1100_rtc_ops = { | |||
386 | .open = sa1100_rtc_open, | 368 | .open = sa1100_rtc_open, |
387 | .read_callback = sa1100_rtc_read_callback, | 369 | .read_callback = sa1100_rtc_read_callback, |
388 | .release = sa1100_rtc_release, | 370 | .release = sa1100_rtc_release, |
389 | .ioctl = sa1100_rtc_ioctl, | ||
390 | .read_time = sa1100_rtc_read_time, | 371 | .read_time = sa1100_rtc_read_time, |
391 | .set_time = sa1100_rtc_set_time, | 372 | .set_time = sa1100_rtc_set_time, |
392 | .read_alarm = sa1100_rtc_read_alarm, | 373 | .read_alarm = sa1100_rtc_read_alarm, |