diff options
author | Uwe Kleine-König <uwe@kleine-koenig.org> | 2016-07-02 11:28:12 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-07-11 17:22:35 -0400 |
commit | 6785b3b60be1504793246ae52cdb9e1df6f5cbcf (patch) | |
tree | ea6c3b61e3bb6aad8b29eca646130e975be0f424 /drivers/rtc/interface.c | |
parent | 5227e8a2a373b07b313492c62653147f1f117995 (diff) |
rtc: fix a typo and reduce three empty lines to one
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/interface.c')
-rw-r--r-- | drivers/rtc/interface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index 7cafd4d33ed3..84a52db9b05f 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c | |||
@@ -393,7 +393,7 @@ int rtc_initialize_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) | |||
393 | rtc->aie_timer.node.expires = rtc_tm_to_ktime(alarm->time); | 393 | rtc->aie_timer.node.expires = rtc_tm_to_ktime(alarm->time); |
394 | rtc->aie_timer.period = ktime_set(0, 0); | 394 | rtc->aie_timer.period = ktime_set(0, 0); |
395 | 395 | ||
396 | /* Alarm has to be enabled & in the futrure for us to enqueue it */ | 396 | /* Alarm has to be enabled & in the future for us to enqueue it */ |
397 | if (alarm->enabled && (rtc_tm_to_ktime(now).tv64 < | 397 | if (alarm->enabled && (rtc_tm_to_ktime(now).tv64 < |
398 | rtc->aie_timer.node.expires.tv64)) { | 398 | rtc->aie_timer.node.expires.tv64)) { |
399 | 399 | ||
@@ -405,8 +405,6 @@ int rtc_initialize_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm) | |||
405 | } | 405 | } |
406 | EXPORT_SYMBOL_GPL(rtc_initialize_alarm); | 406 | EXPORT_SYMBOL_GPL(rtc_initialize_alarm); |
407 | 407 | ||
408 | |||
409 | |||
410 | int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled) | 408 | int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled) |
411 | { | 409 | { |
412 | int err = mutex_lock_interruptible(&rtc->ops_lock); | 410 | int err = mutex_lock_interruptible(&rtc->ops_lock); |