]> Pileus Git - ~andy/linux/commitdiff
RTC: Disable CONFIG_RTC_CLASS from being built as a module
authorJohn Stultz <john.stultz@linaro.org>
Fri, 29 Apr 2011 22:03:11 +0000 (15:03 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2011 19:36:57 +0000 (21:36 +0200)
The RTC subsystem has a number of accessors that are available via
include/linux/rtc.h. However many of these interfaces are not
available for use if CONFIG_RTC_CLASS=m.

So in order to support wider use of the RTC in the kernel, I'm
removing the tristate config option for a bool, so that code can
easily be conditionalized if the RTC class is present or not.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/rtc/Kconfig

index e1878877399c42418e5b8d626337c285e3d9b12a..42891726ea7296ef867453e4423b9d4f0909fdad 100644 (file)
@@ -3,10 +3,10 @@
 #
 
 config RTC_LIB
 #
 
 config RTC_LIB
-       tristate
+       bool
 
 menuconfig RTC_CLASS
 
 menuconfig RTC_CLASS
-       tristate "Real Time Clock"
+       bool "Real Time Clock"
        default n
        depends on !S390
        select RTC_LIB
        default n
        depends on !S390
        select RTC_LIB
@@ -15,9 +15,6 @@ menuconfig RTC_CLASS
          be allowed to plug one or more RTCs to your system. You will
          probably want to enable one or more of the interfaces below.
 
          be allowed to plug one or more RTCs to your system. You will
          probably want to enable one or more of the interfaces below.
 
-         This driver can also be built as a module. If so, the module
-         will be called rtc-core.
-
 if RTC_CLASS
 
 config RTC_HCTOSYS
 if RTC_CLASS
 
 config RTC_HCTOSYS