]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-s3c.c: fix failed first read of RTC time
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 7 Apr 2015 23:45:13 +0000 (09:45 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:45:13 +0000 (09:45 +1000)
commit6c573f99c1a68ea21cd32e576c18ce88fde62b79
tree796f4dfc01392ddce5d41912c31b7d3f934ba69d
parenta1c38f87b0d666f97ae3e07a4c2d167d8965e07f
drivers/rtc/rtc-s3c.c: fix failed first read of RTC time

Initialize the device time (if it is wrong) before registering RTC device
to fix following error message during rtc-s3c probe:

[    2.215414] rtc (null): read_time: fail to read
[    2.216322] s3c-rtc 10070000.rtc: rtc core: registered s3c as rtc1

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-s3c.c