aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-sh.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c
index 39a2fcd98c2d..e6ed5404bca0 100644
--- a/drivers/rtc/rtc-sh.c
+++ b/drivers/rtc/rtc-sh.c
@@ -283,10 +283,8 @@ static int sh_rtc_irq_set_freq(struct device *dev, int freq)
283 ret = -ENOTSUPP; 283 ret = -ENOTSUPP;
284 } 284 }
285 285
286 if (ret == 0) { 286 if (ret == 0)
287 rtc->periodic_freq |= tmp; 287 rtc->periodic_freq |= tmp;
288 rtc->rtc_dev->irq_freq = freq;
289 }
290 288
291 spin_unlock_irq(&rtc->lock); 289 spin_unlock_irq(&rtc->lock);
292 return ret; 290 return ret;