]> 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, 7 Sep 2012 00:24:54 +0000 (10:24 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:30 +0000 (15:36 +1000)
commitbc817182140119bebd5425586269f8eed3c2fbfb
tree2bcf67a700d695369e28dbb476f3552abe8bb29d
parent192dc41ffb8ba323bafed999fc4b66371b54af3d
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