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-at91sam9.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-at91sam9.c')
-rw-r--r-- | drivers/rtc/rtc-at91sam9.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c index 5469c52cba3d..a3ad957507dc 100644 --- a/drivers/rtc/rtc-at91sam9.c +++ b/drivers/rtc/rtc-at91sam9.c | |||
@@ -216,33 +216,6 @@ static int at91_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm) | |||
216 | return 0; | 216 | return 0; |
217 | } | 217 | } |
218 | 218 | ||
219 | /* | ||
220 | * Handle commands from user-space | ||
221 | */ | ||
222 | static int at91_rtc_ioctl(struct device *dev, unsigned int cmd, | ||
223 | unsigned long arg) | ||
224 | { | ||
225 | struct sam9_rtc *rtc = dev_get_drvdata(dev); | ||
226 | int ret = 0; | ||
227 | u32 mr = rtt_readl(rtc, MR); | ||
228 | |||
229 | dev_dbg(dev, "ioctl: cmd=%08x, arg=%08lx, mr %08x\n", cmd, arg, mr); | ||
230 | |||
231 | switch (cmd) { | ||
232 | case RTC_UIE_OFF: /* update off */ | ||
233 | rtt_writel(rtc, MR, mr & ~AT91_RTT_RTTINCIEN); | ||
234 | break; | ||
235 | case RTC_UIE_ON: /* update on */ | ||
236 | rtt_writel(rtc, MR, mr | AT91_RTT_RTTINCIEN); | ||
237 | break; | ||
238 | default: | ||
239 | ret = -ENOIOCTLCMD; | ||
240 | break; | ||
241 | } | ||
242 | |||
243 | return ret; | ||
244 | } | ||
245 | |||
246 | static int at91_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) | 219 | static int at91_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) |
247 | { | 220 | { |
248 | struct sam9_rtc *rtc = dev_get_drvdata(dev); | 221 | struct sam9_rtc *rtc = dev_get_drvdata(dev); |
@@ -303,7 +276,6 @@ static irqreturn_t at91_rtc_interrupt(int irq, void *_rtc) | |||
303 | } | 276 | } |
304 | 277 | ||
305 | static const struct rtc_class_ops at91_rtc_ops = { | 278 | static const struct rtc_class_ops at91_rtc_ops = { |
306 | .ioctl = at91_rtc_ioctl, | ||
307 | .read_time = at91_rtc_readtime, | 279 | .read_time = at91_rtc_readtime, |
308 | .set_time = at91_rtc_settime, | 280 | .set_time = at91_rtc_settime, |
309 | .read_alarm = at91_rtc_readalarm, | 281 | .read_alarm = at91_rtc_readalarm, |