diff options
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, |