diff options
Diffstat (limited to 'drivers/rtc/rtc-omap.c')
-rw-r--r-- | drivers/rtc/rtc-omap.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index b4dbf3a319b3..de0dd7b1f146 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c | |||
@@ -135,44 +135,6 @@ static irqreturn_t rtc_irq(int irq, void *rtc) | |||
135 | return IRQ_HANDLED; | 135 | return IRQ_HANDLED; |
136 | } | 136 | } |
137 | 137 | ||
138 | #ifdef CONFIG_RTC_INTF_DEV | ||
139 | |||
140 | static int | ||
141 | omap_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) | ||
142 | { | ||
143 | u8 reg; | ||
144 | |||
145 | switch (cmd) { | ||
146 | case RTC_UIE_OFF: | ||
147 | case RTC_UIE_ON: | ||
148 | break; | ||
149 | default: | ||
150 | return -ENOIOCTLCMD; | ||
151 | } | ||
152 | |||
153 | local_irq_disable(); | ||
154 | rtc_wait_not_busy(); | ||
155 | reg = rtc_read(OMAP_RTC_INTERRUPTS_REG); | ||
156 | switch (cmd) { | ||
157 | /* UIE = Update Interrupt Enable (1/second) */ | ||
158 | case RTC_UIE_OFF: | ||
159 | reg &= ~OMAP_RTC_INTERRUPTS_IT_TIMER; | ||
160 | break; | ||
161 | case RTC_UIE_ON: | ||
162 | reg |= OMAP_RTC_INTERRUPTS_IT_TIMER; | ||
163 | break; | ||
164 | } | ||
165 | rtc_wait_not_busy(); | ||
166 | rtc_write(reg, OMAP_RTC_INTERRUPTS_REG); | ||
167 | local_irq_enable(); | ||
168 | |||
169 | return 0; | ||
170 | } | ||
171 | |||
172 | #else | ||
173 | #define omap_rtc_ioctl NULL | ||
174 | #endif | ||
175 | |||
176 | static int omap_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) | 138 | static int omap_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) |
177 | { | 139 | { |
178 | u8 reg; | 140 | u8 reg; |
@@ -313,7 +275,6 @@ static int omap_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) | |||
313 | } | 275 | } |
314 | 276 | ||
315 | static struct rtc_class_ops omap_rtc_ops = { | 277 | static struct rtc_class_ops omap_rtc_ops = { |
316 | .ioctl = omap_rtc_ioctl, | ||
317 | .read_time = omap_rtc_read_time, | 278 | .read_time = omap_rtc_read_time, |
318 | .set_time = omap_rtc_set_time, | 279 | .set_time = omap_rtc_set_time, |
319 | .read_alarm = omap_rtc_read_alarm, | 280 | .read_alarm = omap_rtc_read_alarm, |