Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Christoph Hellwig and committed by
Alexandre Belloni
290cd0f0 6a6af3d0

+2 -5
+2 -2
drivers/rtc/Kconfig
··· 820 820 821 821 comment "Platform RTC drivers" 822 822 823 - # this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h> 824 - # requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a 823 + # this 'CMOS' RTC driver is arch dependent because it requires 824 + # <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a 825 825 # global rtc_lock ... it's not yet just another platform_device. 826 826 827 827 config RTC_DRV_CMOS
-3
drivers/rtc/rtc-cmos.c
··· 772 772 773 773 spin_unlock_irq(&rtc_lock); 774 774 775 - /* FIXME: 776 - * <asm-generic/rtc.h> doesn't know 12-hour mode either. 777 - */ 778 775 if (is_valid_irq(rtc_irq) && !(rtc_control & RTC_24H)) { 779 776 dev_warn(dev, "only 24-hr supported\n"); 780 777 retval = -ENXIO;