aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rs5c313.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-rs5c313.c')
-rw-r--r--drivers/rtc/rtc-rs5c313.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c
index 79ee371dd75b..f964d1d33c04 100644
--- a/drivers/rtc/rtc-rs5c313.c
+++ b/drivers/rtc/rtc-rs5c313.c
@@ -331,7 +331,8 @@ static void rs5c313_check_xstp_bit(void)
331 331
332 memset(&tm, 0, sizeof(struct rtc_time)); 332 memset(&tm, 0, sizeof(struct rtc_time));
333 tm.tm_mday = 1; 333 tm.tm_mday = 1;
334 tm.tm_mon = 1; 334 tm.tm_mon = 1 - 1;
335 tm.tm_year = 2000 - 1900;
335 336
336 rs5c313_rtc_set_time(NULL, &tm); 337 rs5c313_rtc_set_time(NULL, &tm);
337 printk(KERN_ERR "RICHO RS5C313: invalid value, resetting to " 338 printk(KERN_ERR "RICHO RS5C313: invalid value, resetting to "