diff options
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 | }; |