[COMMON] rtc: rtc-s3c: Initialize BCD register
authorChoi Jaehyoung <jkkkkk.choi@samsung.com>
Mon, 7 Aug 2017 05:27:10 +0000 (14:27 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Wed, 9 May 2018 11:27:51 +0000 (20:27 +0900)
commit2f1852aeb0d855be0aed5abde612cd6f79608561
treed0a682ccdae2062effa75fc9885d900aeb731671
parentcab6f6b4371c054675fba572fcf170b2745c0fa4
[COMMON] rtc: rtc-s3c: Initialize BCD register

1) Reset values of BCD registers are undefined.
Therefore, there is no guarantee
that these registers are initialized to BCD values.

Initialize BCD register in RTC probe function

2) BCD year register uses 12bit.

Change-Id: I7ce7fb59db96b5347ff008d5806036b10a8b844f
Signed-off-by: Choi Jaehyoung <jkkkkk.choi@samsung.com>
drivers/rtc/rtc-s3c.c