]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc-proc: permit the /proc/driver/rtc device to use other devices
authorKim, Milo <Milo.Kim@ti.com>
Fri, 28 Sep 2012 00:20:31 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 5 Oct 2012 04:01:28 +0000 (14:01 +1000)
commitbcdaccc9618ee457099783971eac00327d5c383b
treedbaa98fd049eaebd183766608ec97daf4f8fec61
parent4a8e64d1cc1eda9aa6f2bf84592607a3e48e579c
rtc-proc: permit the /proc/driver/rtc device to use other devices

To get time information via /proc/driver/rtc, only the first device (rtc0)
is used.  If the rtcN (eg.  rtc1 or rtc2) is used for the system clock,
there is no way to get information of rtcN via /proc/driver/rtc.  With
this patch, the time data can be retrieved from the system clock RTC.

If the RTC_HCTOSYS_DEVICE is not defined, then rtc0 is used by default.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/rtc.txt
drivers/rtc/Kconfig
drivers/rtc/rtc-proc.c