]> 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>
Thu, 13 Sep 2012 01:01:16 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 07:28:11 +0000 (17:28 +1000)
commit01690d1619b5ca868c6dcf1794955bfde71c70e6
tree2a3c95d0beb8fb6ebac799a53ff3517f9149f9b9
parenta04ed034fac88a1843463de6083e59da6c0f4085
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