aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/Kconfig
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2008-04-28 05:11:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:16 -0400
commitc750090085f260503d8beec1c73c4d2e4fe93628 (patch)
tree6e9b40b453fe55587036d3449c6093b2d83eac36 /drivers/char/Kconfig
parent77459b059b02c16b2c8cbc39b524941a576ad36e (diff)
rtc: avoid legacy drivers with generic framework
Kconfig tweaks to help reduce RTC configuration bugs, by avoiding legacy RTC drivers when the generic RTC framework is enabled: - If rtc-cmos is selected, disable the legacy rtc driver; - When using generic RTC on x86, enable rtc-cmos by default; - In the old "chardev RTC" section of Kconfig, add a comment warning people off these (seven) legacy RTC drivers when the generic framework is in use. People can still use the legacy drivers if they want (or need) to. This doesn't fix the broken dependencies for the legacy "CMOS" RTC driver. Ideally it would be a full list of platforms where it works, not a partial list of ones where it won't. Or better yet, it would depend on a "HAVE_CMOS_RTC" flag defined by various platforms ... surely there's a Kconfig style guideline lurking there. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/Kconfig')
-rw-r--r--drivers/char/Kconfig11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
index 2906ee7bd298..929d4fa73fd9 100644
--- a/drivers/char/Kconfig
+++ b/drivers/char/Kconfig
@@ -732,9 +732,16 @@ config NVRAM
732 To compile this driver as a module, choose M here: the 732 To compile this driver as a module, choose M here: the
733 module will be called nvram. 733 module will be called nvram.
734 734
735#
736# These legacy RTC drivers just cause too many conflicts with the generic
737# RTC framework ... let's not even try to coexist any more.
738#
739if RTC_LIB=n
740
735config RTC 741config RTC
736 tristate "Enhanced Real Time Clock Support" 742 tristate "Enhanced Real Time Clock Support"
737 depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV && !ARM && !SUPERH && !S390 && !AVR32 743 depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \
744 && !ARM && !SUPERH && !S390 && !AVR32
738 ---help--- 745 ---help---
739 If you say Y here and create a character special file /dev/rtc with 746 If you say Y here and create a character special file /dev/rtc with
740 major number 10 and minor number 135 using mknod ("man mknod"), you 747 major number 10 and minor number 135 using mknod ("man mknod"), you
@@ -840,6 +847,8 @@ config DS1302
840 will get access to the real time clock (or hardware clock) built 847 will get access to the real time clock (or hardware clock) built
841 into your computer. 848 into your computer.
842 849
850endif # RTC_LIB
851
843config COBALT_LCD 852config COBALT_LCD
844 bool "Support for Cobalt LCD" 853 bool "Support for Cobalt LCD"
845 depends on MIPS_COBALT 854 depends on MIPS_COBALT