rtc: rtc-s3c: fix RTC initialization method
commite1df962e6cdc431acb6a8da409b6a7d89c4f782e
authorChanghwan Youn <chaos.youn@samsung.com>
Wed, 27 Oct 2010 22:33:10 +0000 (27 15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:06 +0000 (27 18:03 -0700)
treed56e3cab40e38d99cb671d93b982feb57657355d
parent30ffc40cf52cd68782b50cb699b5eca076ca23ab
rtc: rtc-s3c: fix RTC initialization method

Change RTC initialization method in probe().  The 'rtc_valid_tm(tm)' can
check whether RTC BCD is valid or not.  And change the method of checking
because the previous method cannot validate RTC BCD registers properly.

Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-s3c.c