]> 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>
Tue, 18 Sep 2012 06:04:40 +0000 (16:04 +1000)
commitc5ab57dd68697e9fd9c98658c9df09476eb5d510
treeac024d0969c111ee0f02aaccc54fcc68adc23a54
parent37d383fd45c99f8ed947cf99403446f6988174fb
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