aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-s3c.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index a313b9b5a27e..76cbad7a99d3 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -497,9 +497,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
497 device_init_wakeup(&pdev->dev, 1); 497 device_init_wakeup(&pdev->dev, 1);
498 498
499 /* Check RTC Time */ 499 /* Check RTC Time */
500 s3c_rtc_gettime(&pdev->dev, &rtc_tm); 500 if (s3c_rtc_gettime(&pdev->dev, &rtc_tm)) {
501
502 if (rtc_valid_tm(&rtc_tm)) {
503 rtc_tm.tm_year = 100; 501 rtc_tm.tm_year = 100;
504 rtc_tm.tm_mon = 0; 502 rtc_tm.tm_mon = 0;
505 rtc_tm.tm_mday = 1; 503 rtc_tm.tm_mday = 1;