diff options
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 20 | ||||
-rw-r--r-- | drivers/rtc/rtc-davinci.c | 34 | ||||
-rw-r--r-- | drivers/rtc/rtc-mrst.c | 20 | ||||
-rw-r--r-- | drivers/rtc/rtc-pl031.c | 34 | ||||
-rw-r--r-- | drivers/rtc/rtc-pxa.c | 13 | ||||
-rw-r--r-- | drivers/rtc/rtc-rx8025.c | 25 | ||||
-rw-r--r-- | drivers/rtc/rtc-s3c.c | 32 | ||||
-rw-r--r-- | drivers/rtc/rtc-sa1100.c | 18 | ||||
-rw-r--r-- | drivers/rtc/rtc-sh.c | 1 | ||||
-rw-r--r-- | drivers/rtc/rtc-vr41xx.c | 11 |
10 files changed, 0 insertions, 208 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index c7ff8df347e7..de632e793d46 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c | |||
@@ -400,25 +400,6 @@ static int cmos_irq_set_freq(struct device *dev, int freq) | |||
400 | return 0; | 400 | return 0; |
401 | } | 401 | } |
402 | 402 | ||
403 | static int cmos_irq_set_state(struct device *dev, int enabled) | ||
404 | { | ||
405 | struct cmos_rtc *cmos = dev_get_drvdata(dev); | ||
406 | unsigned long flags; | ||
407 | |||
408 | if (!is_valid_irq(cmos->irq)) | ||
409 | return -ENXIO; | ||
410 | |||
411 | spin_lock_irqsave(&rtc_lock, flags); | ||
412 | |||
413 | if (enabled) | ||
414 | cmos_irq_enable(cmos, RTC_PIE); | ||
415 | else | ||
416 | cmos_irq_disable(cmos, RTC_PIE); | ||
417 | |||
418 | spin_unlock_irqrestore(&rtc_lock, flags); | ||
419 | return 0; | ||
420 | } | ||
421 | |||
422 | static int cmos_alarm_irq_enable(struct device *dev, unsigned int enabled) | 403 | static int cmos_alarm_irq_enable(struct device *dev, unsigned int enabled) |
423 | { | 404 | { |
424 | struct cmos_rtc *cmos = dev_get_drvdata(dev); | 405 | struct cmos_rtc *cmos = dev_get_drvdata(dev); |
@@ -502,7 +483,6 @@ static const struct rtc_class_ops cmos_rtc_ops = { | |||
502 | .set_alarm = cmos_set_alarm, | 483 | .set_alarm = cmos_set_alarm, |
503 | .proc = cmos_procfs, | 484 | .proc = cmos_procfs, |
504 | .irq_set_freq = cmos_irq_set_freq, | 485 | .irq_set_freq = cmos_irq_set_freq, |
505 | .irq_set_state = cmos_irq_set_state, | ||
506 | .alarm_irq_enable = cmos_alarm_irq_enable, | 486 | .alarm_irq_enable = cmos_alarm_irq_enable, |
507 | .update_irq_enable = cmos_update_irq_enable, | 487 | .update_irq_enable = cmos_update_irq_enable, |
508 | }; | 488 | }; |
diff --git a/drivers/rtc/rtc-davinci.c b/drivers/rtc/rtc-davinci.c index 34647fc1ee98..92da73d40e13 100644 --- a/drivers/rtc/rtc-davinci.c +++ b/drivers/rtc/rtc-davinci.c | |||
@@ -473,39 +473,6 @@ static int davinci_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) | |||
473 | return 0; | 473 | return 0; |
474 | } | 474 | } |
475 | 475 | ||
476 | static int davinci_rtc_irq_set_state(struct device *dev, int enabled) | ||
477 | { | ||
478 | struct davinci_rtc *davinci_rtc = dev_get_drvdata(dev); | ||
479 | unsigned long flags; | ||
480 | u8 rtc_ctrl; | ||
481 | |||
482 | spin_lock_irqsave(&davinci_rtc_lock, flags); | ||
483 | |||
484 | rtc_ctrl = rtcss_read(davinci_rtc, PRTCSS_RTC_CTRL); | ||
485 | |||
486 | if (enabled) { | ||
487 | while (rtcss_read(davinci_rtc, PRTCSS_RTC_CTRL) | ||
488 | & PRTCSS_RTC_CTRL_WDTBUS) | ||
489 | cpu_relax(); | ||
490 | |||
491 | rtc_ctrl |= PRTCSS_RTC_CTRL_TE; | ||
492 | rtcss_write(davinci_rtc, rtc_ctrl, PRTCSS_RTC_CTRL); | ||
493 | |||
494 | rtcss_write(davinci_rtc, 0x0, PRTCSS_RTC_CLKC_CNT); | ||
495 | |||
496 | rtc_ctrl |= PRTCSS_RTC_CTRL_TIEN | | ||
497 | PRTCSS_RTC_CTRL_TMMD | | ||
498 | PRTCSS_RTC_CTRL_TMRFLG; | ||
499 | } else | ||
500 | rtc_ctrl &= ~PRTCSS_RTC_CTRL_TIEN; | ||
501 | |||
502 | rtcss_write(davinci_rtc, rtc_ctrl, PRTCSS_RTC_CTRL); | ||
503 | |||
504 | spin_unlock_irqrestore(&davinci_rtc_lock, flags); | ||
505 | |||
506 | return 0; | ||
507 | } | ||
508 | |||
509 | static int davinci_rtc_irq_set_freq(struct device *dev, int freq) | 476 | static int davinci_rtc_irq_set_freq(struct device *dev, int freq) |
510 | { | 477 | { |
511 | struct davinci_rtc *davinci_rtc = dev_get_drvdata(dev); | 478 | struct davinci_rtc *davinci_rtc = dev_get_drvdata(dev); |
@@ -529,7 +496,6 @@ static struct rtc_class_ops davinci_rtc_ops = { | |||
529 | .alarm_irq_enable = davinci_rtc_alarm_irq_enable, | 496 | .alarm_irq_enable = davinci_rtc_alarm_irq_enable, |
530 | .read_alarm = davinci_rtc_read_alarm, | 497 | .read_alarm = davinci_rtc_read_alarm, |
531 | .set_alarm = davinci_rtc_set_alarm, | 498 | .set_alarm = davinci_rtc_set_alarm, |
532 | .irq_set_state = davinci_rtc_irq_set_state, | ||
533 | .irq_set_freq = davinci_rtc_irq_set_freq, | 499 | .irq_set_freq = davinci_rtc_irq_set_freq, |
534 | }; | 500 | }; |
535 | 501 | ||
diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c index 1db62db8469d..4db96fa306fc 100644 --- a/drivers/rtc/rtc-mrst.c +++ b/drivers/rtc/rtc-mrst.c | |||
@@ -236,25 +236,6 @@ static int mrst_set_alarm(struct device *dev, struct rtc_wkalrm *t) | |||
236 | return 0; | 236 | return 0; |
237 | } | 237 | } |
238 | 238 | ||
239 | static int mrst_irq_set_state(struct device *dev, int enabled) | ||
240 | { | ||
241 | struct mrst_rtc *mrst = dev_get_drvdata(dev); | ||
242 | unsigned long flags; | ||
243 | |||
244 | if (!mrst->irq) | ||
245 | return -ENXIO; | ||
246 | |||
247 | spin_lock_irqsave(&rtc_lock, flags); | ||
248 | |||
249 | if (enabled) | ||
250 | mrst_irq_enable(mrst, RTC_PIE); | ||
251 | else | ||
252 | mrst_irq_disable(mrst, RTC_PIE); | ||
253 | |||
254 | spin_unlock_irqrestore(&rtc_lock, flags); | ||
255 | return 0; | ||
256 | } | ||
257 | |||
258 | /* Currently, the vRTC doesn't support UIE ON/OFF */ | 239 | /* Currently, the vRTC doesn't support UIE ON/OFF */ |
259 | static int mrst_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) | 240 | static int mrst_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) |
260 | { | 241 | { |
@@ -301,7 +282,6 @@ static const struct rtc_class_ops mrst_rtc_ops = { | |||
301 | .read_alarm = mrst_read_alarm, | 282 | .read_alarm = mrst_read_alarm, |
302 | .set_alarm = mrst_set_alarm, | 283 | .set_alarm = mrst_set_alarm, |
303 | .proc = mrst_procfs, | 284 | .proc = mrst_procfs, |
304 | .irq_set_state = mrst_irq_set_state, | ||
305 | .alarm_irq_enable = mrst_rtc_alarm_irq_enable, | 285 | .alarm_irq_enable = mrst_rtc_alarm_irq_enable, |
306 | }; | 286 | }; |
307 | 287 | ||
diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index b7a6690e5b35..0e7c15b24c1c 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c | |||
@@ -293,38 +293,6 @@ static int pl031_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) | |||
293 | return ret; | 293 | return ret; |
294 | } | 294 | } |
295 | 295 | ||
296 | /* Periodic interrupt is only available in ST variants. */ | ||
297 | static int pl031_irq_set_state(struct device *dev, int enabled) | ||
298 | { | ||
299 | struct pl031_local *ldata = dev_get_drvdata(dev); | ||
300 | |||
301 | if (enabled == 1) { | ||
302 | /* Clear any pending timer interrupt. */ | ||
303 | writel(RTC_BIT_PI, ldata->base + RTC_ICR); | ||
304 | |||
305 | writel(readl(ldata->base + RTC_IMSC) | RTC_BIT_PI, | ||
306 | ldata->base + RTC_IMSC); | ||
307 | |||
308 | /* Now start the timer */ | ||
309 | writel(readl(ldata->base + RTC_TCR) | RTC_TCR_EN, | ||
310 | ldata->base + RTC_TCR); | ||
311 | |||
312 | } else { | ||
313 | writel(readl(ldata->base + RTC_IMSC) & (~RTC_BIT_PI), | ||
314 | ldata->base + RTC_IMSC); | ||
315 | |||
316 | /* Also stop the timer */ | ||
317 | writel(readl(ldata->base + RTC_TCR) & (~RTC_TCR_EN), | ||
318 | ldata->base + RTC_TCR); | ||
319 | } | ||
320 | /* Wait at least 1 RTC32 clock cycle to ensure next access | ||
321 | * to RTC_TCR will succeed. | ||
322 | */ | ||
323 | udelay(40); | ||
324 | |||
325 | return 0; | ||
326 | } | ||
327 | |||
328 | static int pl031_irq_set_freq(struct device *dev, int freq) | 296 | static int pl031_irq_set_freq(struct device *dev, int freq) |
329 | { | 297 | { |
330 | struct pl031_local *ldata = dev_get_drvdata(dev); | 298 | struct pl031_local *ldata = dev_get_drvdata(dev); |
@@ -440,7 +408,6 @@ static struct rtc_class_ops stv1_pl031_ops = { | |||
440 | .read_alarm = pl031_read_alarm, | 408 | .read_alarm = pl031_read_alarm, |
441 | .set_alarm = pl031_set_alarm, | 409 | .set_alarm = pl031_set_alarm, |
442 | .alarm_irq_enable = pl031_alarm_irq_enable, | 410 | .alarm_irq_enable = pl031_alarm_irq_enable, |
443 | .irq_set_state = pl031_irq_set_state, | ||
444 | .irq_set_freq = pl031_irq_set_freq, | 411 | .irq_set_freq = pl031_irq_set_freq, |
445 | }; | 412 | }; |
446 | 413 | ||
@@ -451,7 +418,6 @@ static struct rtc_class_ops stv2_pl031_ops = { | |||
451 | .read_alarm = pl031_stv2_read_alarm, | 418 | .read_alarm = pl031_stv2_read_alarm, |
452 | .set_alarm = pl031_stv2_set_alarm, | 419 | .set_alarm = pl031_stv2_set_alarm, |
453 | .alarm_irq_enable = pl031_alarm_irq_enable, | 420 | .alarm_irq_enable = pl031_alarm_irq_enable, |
454 | .irq_set_state = pl031_irq_set_state, | ||
455 | .irq_set_freq = pl031_irq_set_freq, | 421 | .irq_set_freq = pl031_irq_set_freq, |
456 | }; | 422 | }; |
457 | 423 | ||
diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c index 29e867a1aaa8..b216ae5389c8 100644 --- a/drivers/rtc/rtc-pxa.c +++ b/drivers/rtc/rtc-pxa.c | |||
@@ -223,18 +223,6 @@ static int pxa_periodic_irq_set_freq(struct device *dev, int freq) | |||
223 | return 0; | 223 | return 0; |
224 | } | 224 | } |
225 | 225 | ||
226 | static int pxa_periodic_irq_set_state(struct device *dev, int enabled) | ||
227 | { | ||
228 | struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); | ||
229 | |||
230 | if (enabled) | ||
231 | rtsr_set_bits(pxa_rtc, RTSR_PIALE | RTSR_PICE); | ||
232 | else | ||
233 | rtsr_clear_bits(pxa_rtc, RTSR_PIALE | RTSR_PICE); | ||
234 | |||
235 | return 0; | ||
236 | } | ||
237 | |||
238 | static int pxa_alarm_irq_enable(struct device *dev, unsigned int enabled) | 226 | static int pxa_alarm_irq_enable(struct device *dev, unsigned int enabled) |
239 | { | 227 | { |
240 | struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); | 228 | struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev); |
@@ -348,7 +336,6 @@ static const struct rtc_class_ops pxa_rtc_ops = { | |||
348 | .alarm_irq_enable = pxa_alarm_irq_enable, | 336 | .alarm_irq_enable = pxa_alarm_irq_enable, |
349 | .update_irq_enable = pxa_update_irq_enable, | 337 | .update_irq_enable = pxa_update_irq_enable, |
350 | .proc = pxa_rtc_proc, | 338 | .proc = pxa_rtc_proc, |
351 | .irq_set_state = pxa_periodic_irq_set_state, | ||
352 | .irq_set_freq = pxa_periodic_irq_set_freq, | 339 | .irq_set_freq = pxa_periodic_irq_set_freq, |
353 | }; | 340 | }; |
354 | 341 | ||
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index af32a62e12a8..fde172fb2abe 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c | |||
@@ -424,37 +424,12 @@ static int rx8025_alarm_irq_enable(struct device *dev, unsigned int enabled) | |||
424 | return 0; | 424 | return 0; |
425 | } | 425 | } |
426 | 426 | ||
427 | static int rx8025_irq_set_state(struct device *dev, int enabled) | ||
428 | { | ||
429 | struct i2c_client *client = to_i2c_client(dev); | ||
430 | struct rx8025_data *rx8025 = i2c_get_clientdata(client); | ||
431 | int ctrl1; | ||
432 | int err; | ||
433 | |||
434 | if (client->irq <= 0) | ||
435 | return -ENXIO; | ||
436 | |||
437 | ctrl1 = rx8025->ctrl1 & ~RX8025_BIT_CTRL1_CT; | ||
438 | if (enabled) | ||
439 | ctrl1 |= RX8025_BIT_CTRL1_CT_1HZ; | ||
440 | if (ctrl1 != rx8025->ctrl1) { | ||
441 | rx8025->ctrl1 = ctrl1; | ||
442 | err = rx8025_write_reg(rx8025->client, RX8025_REG_CTRL1, | ||
443 | rx8025->ctrl1); | ||
444 | if (err) | ||
445 | return err; | ||
446 | } | ||
447 | |||
448 | return 0; | ||
449 | } | ||
450 | |||
451 | static struct rtc_class_ops rx8025_rtc_ops = { | 427 | static struct rtc_class_ops rx8025_rtc_ops = { |
452 | .read_time = rx8025_get_time, | 428 | .read_time = rx8025_get_time, |
453 | .set_time = rx8025_set_time, | 429 | .set_time = rx8025_set_time, |
454 | .read_alarm = rx8025_read_alarm, | 430 | .read_alarm = rx8025_read_alarm, |
455 | .set_alarm = rx8025_set_alarm, | 431 | .set_alarm = rx8025_set_alarm, |
456 | .alarm_irq_enable = rx8025_alarm_irq_enable, | 432 | .alarm_irq_enable = rx8025_alarm_irq_enable, |
457 | .irq_set_state = rx8025_irq_set_state, | ||
458 | }; | 433 | }; |
459 | 434 | ||
460 | /* | 435 | /* |
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index b80fa2882408..80fb7e72f9d9 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c | |||
@@ -93,37 +93,6 @@ static int s3c_rtc_setaie(struct device *dev, unsigned int enabled) | |||
93 | return 0; | 93 | return 0; |
94 | } | 94 | } |
95 | 95 | ||
96 | static int s3c_rtc_setpie(struct device *dev, int enabled) | ||
97 | { | ||
98 | unsigned int tmp; | ||
99 | |||
100 | pr_debug("%s: pie=%d\n", __func__, enabled); | ||
101 | |||
102 | spin_lock_irq(&s3c_rtc_pie_lock); | ||
103 | |||
104 | if (s3c_rtc_cpu_type == TYPE_S3C64XX) { | ||
105 | tmp = readw(s3c_rtc_base + S3C2410_RTCCON); | ||
106 | tmp &= ~S3C64XX_RTCCON_TICEN; | ||
107 | |||
108 | if (enabled) | ||
109 | tmp |= S3C64XX_RTCCON_TICEN; | ||
110 | |||
111 | writew(tmp, s3c_rtc_base + S3C2410_RTCCON); | ||
112 | } else { | ||
113 | tmp = readb(s3c_rtc_base + S3C2410_TICNT); | ||
114 | tmp &= ~S3C2410_TICNT_ENABLE; | ||
115 | |||
116 | if (enabled) | ||
117 | tmp |= S3C2410_TICNT_ENABLE; | ||
118 | |||
119 | writeb(tmp, s3c_rtc_base + S3C2410_TICNT); | ||
120 | } | ||
121 | |||
122 | spin_unlock_irq(&s3c_rtc_pie_lock); | ||
123 | |||
124 | return 0; | ||
125 | } | ||
126 | |||
127 | static int s3c_rtc_setfreq(struct device *dev, int freq) | 96 | static int s3c_rtc_setfreq(struct device *dev, int freq) |
128 | { | 97 | { |
129 | struct platform_device *pdev = to_platform_device(dev); | 98 | struct platform_device *pdev = to_platform_device(dev); |
@@ -380,7 +349,6 @@ static const struct rtc_class_ops s3c_rtcops = { | |||
380 | .read_alarm = s3c_rtc_getalarm, | 349 | .read_alarm = s3c_rtc_getalarm, |
381 | .set_alarm = s3c_rtc_setalarm, | 350 | .set_alarm = s3c_rtc_setalarm, |
382 | .irq_set_freq = s3c_rtc_setfreq, | 351 | .irq_set_freq = s3c_rtc_setfreq, |
383 | .irq_set_state = s3c_rtc_setpie, | ||
384 | .proc = s3c_rtc_proc, | 352 | .proc = s3c_rtc_proc, |
385 | .alarm_irq_enable = s3c_rtc_setaie, | 353 | .alarm_irq_enable = s3c_rtc_setaie, |
386 | }; | 354 | }; |
diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c index 5dfe5ffcb0d3..d47b3fc9830f 100644 --- a/drivers/rtc/rtc-sa1100.c +++ b/drivers/rtc/rtc-sa1100.c | |||
@@ -171,23 +171,6 @@ static int sa1100_irq_set_freq(struct device *dev, int freq) | |||
171 | 171 | ||
172 | static int rtc_timer1_count; | 172 | static int rtc_timer1_count; |
173 | 173 | ||
174 | static int sa1100_irq_set_state(struct device *dev, int enabled) | ||
175 | { | ||
176 | spin_lock_irq(&sa1100_rtc_lock); | ||
177 | if (enabled) { | ||
178 | struct rtc_device *rtc = (struct rtc_device *)dev; | ||
179 | |||
180 | OSMR1 = timer_freq / rtc->irq_freq + OSCR; | ||
181 | OIER |= OIER_E1; | ||
182 | rtc_timer1_count = 1; | ||
183 | } else { | ||
184 | OIER &= ~OIER_E1; | ||
185 | } | ||
186 | spin_unlock_irq(&sa1100_rtc_lock); | ||
187 | |||
188 | return 0; | ||
189 | } | ||
190 | |||
191 | static inline int sa1100_timer1_retrigger(struct rtc_device *rtc) | 174 | static inline int sa1100_timer1_retrigger(struct rtc_device *rtc) |
192 | { | 175 | { |
193 | unsigned long diff; | 176 | unsigned long diff; |
@@ -410,7 +393,6 @@ static const struct rtc_class_ops sa1100_rtc_ops = { | |||
410 | .set_alarm = sa1100_rtc_set_alarm, | 393 | .set_alarm = sa1100_rtc_set_alarm, |
411 | .proc = sa1100_rtc_proc, | 394 | .proc = sa1100_rtc_proc, |
412 | .irq_set_freq = sa1100_irq_set_freq, | 395 | .irq_set_freq = sa1100_irq_set_freq, |
413 | .irq_set_state = sa1100_irq_set_state, | ||
414 | .alarm_irq_enable = sa1100_rtc_alarm_irq_enable, | 396 | .alarm_irq_enable = sa1100_rtc_alarm_irq_enable, |
415 | }; | 397 | }; |
416 | 398 | ||
diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index 93314a9e7fa9..ff50a8bc13f6 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c | |||
@@ -603,7 +603,6 @@ static struct rtc_class_ops sh_rtc_ops = { | |||
603 | .set_time = sh_rtc_set_time, | 603 | .set_time = sh_rtc_set_time, |
604 | .read_alarm = sh_rtc_read_alarm, | 604 | .read_alarm = sh_rtc_read_alarm, |
605 | .set_alarm = sh_rtc_set_alarm, | 605 | .set_alarm = sh_rtc_set_alarm, |
606 | .irq_set_state = sh_rtc_irq_set_state, | ||
607 | .irq_set_freq = sh_rtc_irq_set_freq, | 606 | .irq_set_freq = sh_rtc_irq_set_freq, |
608 | .proc = sh_rtc_proc, | 607 | .proc = sh_rtc_proc, |
609 | .alarm_irq_enable = sh_rtc_alarm_irq_enable, | 608 | .alarm_irq_enable = sh_rtc_alarm_irq_enable, |
diff --git a/drivers/rtc/rtc-vr41xx.c b/drivers/rtc/rtc-vr41xx.c index 769190ac6d11..86f14909f9db 100644 --- a/drivers/rtc/rtc-vr41xx.c +++ b/drivers/rtc/rtc-vr41xx.c | |||
@@ -227,16 +227,6 @@ static int vr41xx_rtc_irq_set_freq(struct device *dev, int freq) | |||
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
229 | 229 | ||
230 | static int vr41xx_rtc_irq_set_state(struct device *dev, int enabled) | ||
231 | { | ||
232 | if (enabled) | ||
233 | enable_irq(pie_irq); | ||
234 | else | ||
235 | disable_irq(pie_irq); | ||
236 | |||
237 | return 0; | ||
238 | } | ||
239 | |||
240 | static int vr41xx_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) | 230 | static int vr41xx_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) |
241 | { | 231 | { |
242 | switch (cmd) { | 232 | switch (cmd) { |
@@ -309,7 +299,6 @@ static const struct rtc_class_ops vr41xx_rtc_ops = { | |||
309 | .read_alarm = vr41xx_rtc_read_alarm, | 299 | .read_alarm = vr41xx_rtc_read_alarm, |
310 | .set_alarm = vr41xx_rtc_set_alarm, | 300 | .set_alarm = vr41xx_rtc_set_alarm, |
311 | .irq_set_freq = vr41xx_rtc_irq_set_freq, | 301 | .irq_set_freq = vr41xx_rtc_irq_set_freq, |
312 | .irq_set_state = vr41xx_rtc_irq_set_state, | ||
313 | }; | 302 | }; |
314 | 303 | ||
315 | static int __devinit rtc_probe(struct platform_device *pdev) | 304 | static int __devinit rtc_probe(struct platform_device *pdev) |