diff options
-rw-r--r-- | drivers/rtc/interface.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index ed35a6b4753f..8e286259a007 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c | |||
@@ -73,8 +73,6 @@ int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) | |||
73 | err = -EINVAL; | 73 | err = -EINVAL; |
74 | 74 | ||
75 | mutex_unlock(&rtc->ops_lock); | 75 | mutex_unlock(&rtc->ops_lock); |
76 | /* A timer might have just expired */ | ||
77 | schedule_work(&rtc->irqwork); | ||
78 | return err; | 76 | return err; |
79 | } | 77 | } |
80 | EXPORT_SYMBOL_GPL(rtc_set_time); | 78 | EXPORT_SYMBOL_GPL(rtc_set_time); |
@@ -114,8 +112,6 @@ int rtc_set_mmss(struct rtc_device *rtc, unsigned long secs) | |||
114 | err = -EINVAL; | 112 | err = -EINVAL; |
115 | 113 | ||
116 | mutex_unlock(&rtc->ops_lock); | 114 | mutex_unlock(&rtc->ops_lock); |
117 | /* A timer might have just expired */ | ||
118 | schedule_work(&rtc->irqwork); | ||
119 | 115 | ||
120 | return err; | 116 | return err; |
121 | } | 117 | } |
@@ -400,8 +396,6 @@ int rtc_initialize_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) | |||
400 | timerqueue_add(&rtc->timerqueue, &rtc->aie_timer.node); | 396 | timerqueue_add(&rtc->timerqueue, &rtc->aie_timer.node); |
401 | } | 397 | } |
402 | mutex_unlock(&rtc->ops_lock); | 398 | mutex_unlock(&rtc->ops_lock); |
403 | /* maybe that was in the past.*/ | ||
404 | schedule_work(&rtc->irqwork); | ||
405 | return err; | 399 | return err; |
406 | } | 400 | } |
407 | EXPORT_SYMBOL_GPL(rtc_initialize_alarm); | 401 | EXPORT_SYMBOL_GPL(rtc_initialize_alarm); |