summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rtc/interface.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c
index ccb7d6b4da3b..56ed0c3a8c85 100644
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -573,10 +573,9 @@ out:
573 mutex_unlock(&rtc->ops_lock); 573 mutex_unlock(&rtc->ops_lock);
574#ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL 574#ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL
575 /* 575 /*
576 * Enable emulation if the driver did not provide 576 * Enable emulation if the driver returned -EINVAL to signal that it has
577 * the update_irq_enable function pointer or if returned 577 * been configured without interrupts or they are not available at the
578 * -EINVAL to signal that it has been configured without 578 * moment.
579 * interrupts or that are not available at the moment.
580 */ 579 */
581 if (err == -EINVAL) 580 if (err == -EINVAL)
582 err = rtc_dev_update_irq_enable_emul(rtc, enabled); 581 err = rtc_dev_update_irq_enable_emul(rtc, enabled);