aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2012-10-10 18:54:06 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-10 19:50:16 -0400
commit8dc0839510ed4a7c594386ef58446b014fb4c27a (patch)
treedbea8fdf8d42f59c920e29224644c6ad9c83ac6b /drivers/rtc
parentfdb8d561e6fb8538e320554b991ed183b19ddc83 (diff)
rtc: kconfig: fix RTC_INTF defaults connected to RTC_CLASS
Commit 6b8029fab641 ("rtc: kconfig: remove unnecessary dependencies") removed various 'depends on RTC_CLASS' dependencies but also removed a few 'default RTC_CLASS' statements, which actually changed default behavior. This resulted in the various RTC interfaces (sysfs, proc, dev) all being disabled by default, even when RTC_CLASS is enabled: # CONFIG_RTC_INTF_SYSFS is not set # CONFIG_RTC_INTF_PROC is not set # CONFIG_RTC_INTF_DEV is not set which is different from previous behavior (all of these where enabled.) To fix, add back the 'default RTC_CLASS' statments to each of the RTC_INTF_* options. I noticed this because some RTC tests started failing on my TI OMAP platforms because /dev/rtc0 was not present anymore, even though the driver was present and RTC_CLASS was enabled. Signed-off-by: Kevin Hilman <khilman@ti.com> Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index e069f176a82d..19c03ab2bdcb 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -59,6 +59,7 @@ comment "RTC interfaces"
59config RTC_INTF_SYSFS 59config RTC_INTF_SYSFS
60 boolean "/sys/class/rtc/rtcN (sysfs)" 60 boolean "/sys/class/rtc/rtcN (sysfs)"
61 depends on SYSFS 61 depends on SYSFS
62 default RTC_CLASS
62 help 63 help
63 Say yes here if you want to use your RTCs using sysfs interfaces, 64 Say yes here if you want to use your RTCs using sysfs interfaces,
64 /sys/class/rtc/rtc0 through /sys/.../rtcN. 65 /sys/class/rtc/rtc0 through /sys/.../rtcN.
@@ -68,6 +69,7 @@ config RTC_INTF_SYSFS
68config RTC_INTF_PROC 69config RTC_INTF_PROC
69 boolean "/proc/driver/rtc (procfs for rtcN)" 70 boolean "/proc/driver/rtc (procfs for rtcN)"
70 depends on PROC_FS 71 depends on PROC_FS
72 default RTC_CLASS
71 help 73 help
72 Say yes here if you want to use your system clock RTC through 74 Say yes here if you want to use your system clock RTC through
73 the proc interface, /proc/driver/rtc. 75 the proc interface, /proc/driver/rtc.
@@ -79,6 +81,7 @@ config RTC_INTF_PROC
79 81
80config RTC_INTF_DEV 82config RTC_INTF_DEV
81 boolean "/dev/rtcN (character devices)" 83 boolean "/dev/rtcN (character devices)"
84 default RTC_CLASS
82 help 85 help
83 Say yes here if you want to use your RTCs using the /dev 86 Say yes here if you want to use your RTCs using the /dev
84 interfaces, which "udev" sets up as /dev/rtc0 through 87 interfaces, which "udev" sets up as /dev/rtc0 through