Commit 290cd0f0 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alexandre Belloni

rtc: cmos: don't refer to asm-generic/rtc.h

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 6a6af3d0
...@@ -820,8 +820,8 @@ config RTC_DRV_RV3029_HWMON ...@@ -820,8 +820,8 @@ config RTC_DRV_RV3029_HWMON
comment "Platform RTC drivers" comment "Platform RTC drivers"
# this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h> # this 'CMOS' RTC driver is arch dependent because it requires
# requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a # <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
# global rtc_lock ... it's not yet just another platform_device. # global rtc_lock ... it's not yet just another platform_device.
config RTC_DRV_CMOS config RTC_DRV_CMOS
......
...@@ -772,9 +772,6 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) ...@@ -772,9 +772,6 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
spin_unlock_irq(&rtc_lock); 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)) { if (is_valid_irq(rtc_irq) && !(rtc_control & RTC_24H)) {
dev_warn(dev, "only 24-hr supported\n"); dev_warn(dev, "only 24-hr supported\n");
retval = -ENXIO; retval = -ENXIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment