]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rtc: don't reference bogus function pointer in kdoc
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 3 Apr 2019 15:19:52 +0000 (17:19 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:11:38 +0000 (21:11 +0100)
commit c48cadf5bf4becefcd0751b97995d2350aa9bb57 upstream.

The mentioned function pointer is long gone since early 2011. Remove the
reference in the comment and reword it slightly.

Fixes: 51ba60c5bb3b ("RTC: Cleanup rtc_class_ops->update_irq_enable()")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/rtc/interface.c

index 05eeeb537ff808f967f37b852da4d16ea7d77f86..b05517c75f5ba881d881bded3cccf3303e7b8983 100644 (file)
@@ -492,10 +492,9 @@ out:
        mutex_unlock(&rtc->ops_lock);
 #ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL
        /*
-        * Enable emulation if the driver did not provide
-        * the update_irq_enable function pointer or if returned
-        * -EINVAL to signal that it has been configured without
-        * interrupts or that are not available at the moment.
+        * Enable emulation if the driver returned -EINVAL to signal that it has
+        * been configured without interrupts or they are not available at the
+        * moment.
         */
        if (err == -EINVAL)
                err = rtc_dev_update_irq_enable_emul(rtc, enabled);