]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rtc: cmos: don't refer to asm-generic/rtc.h
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Oct 2016 13:30:53 +0000 (15:30 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 19 Oct 2016 07:41:48 +0000 (09:41 +0200)
That header has been gone for a while.  I've fixed up the Kconfig
comment, but the one in rtc-cmos.c doesn't make any sense to me
even looking at its history.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-cmos.c

index e859d148aba9ecdbcecc47e745209b94ed83dd67..4cbea34e6003675687c6d5101a347d3ed71fe956 100644 (file)
@@ -820,8 +820,8 @@ config RTC_DRV_RV3029_HWMON
 
 comment "Platform RTC drivers"
 
-# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
-# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
+# this 'CMOS' RTC driver is arch dependent because it requires
+# <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
 # global rtc_lock ... it's not yet just another platform_device.
 
 config RTC_DRV_CMOS
index 903a82ae83f0cfa510a8fea1675b31712f3627b1..390172bac39b3309ab88771958213bb822d68a4c 100644 (file)
@@ -772,9 +772,6 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
 
        spin_unlock_irq(&rtc_lock);
 
-       /* FIXME:
-        * <asm-generic/rtc.h> doesn't know 12-hour mode either.
-        */
        if (is_valid_irq(rtc_irq) && !(rtc_control & RTC_24H)) {
                dev_warn(dev, "only 24-hr supported\n");
                retval = -ENXIO;