diff options
author | John Stultz <john.stultz@linaro.org> | 2011-02-03 14:34:50 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2011-03-09 14:23:34 -0500 |
commit | 80d4bb515b78f38738f3378fd1be6039063ab040 (patch) | |
tree | 92e3f938097fa9f8de5c80886b1d0d724cb37b47 /drivers/rtc/rtc-s3c.c | |
parent | f44f7f96a20af16f6f12e1c995576d6becf5f57b (diff) |
RTC: Cleanup rtc_class_ops->irq_set_state
With PIE mode interrupts now emulated in generic code via an hrtimer,
no one calls rtc_class_ops->irq_set_state(), so this patch removes it
along with driver implementations.
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-s3c.c')
-rw-r--r-- | drivers/rtc/rtc-s3c.c | 32 |
1 files changed, 0 insertions, 32 deletions
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 | }; |