From: kogiidena Date: Fri, 11 May 2007 05:22:56 +0000 (-0700) Subject: rtc-rs5c313.c: rtc_time value are fixed X-Git-Tag: v2.6.22-rc1~67 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6a078950d769ff211c1cbd9468e31162481f8d;p=linux-2.6 rtc-rs5c313.c: rtc_time value are fixed Correct an initial value of suruct rtc_ time. Signed-off-by: kogiidena Cc: Alessandro Zummo Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c index 79ee371dd7..f964d1d33c 100644 --- a/drivers/rtc/rtc-rs5c313.c +++ b/drivers/rtc/rtc-rs5c313.c @@ -331,7 +331,8 @@ static void rs5c313_check_xstp_bit(void) memset(&tm, 0, sizeof(struct rtc_time)); tm.tm_mday = 1; - tm.tm_mon = 1; + tm.tm_mon = 1 - 1; + tm.tm_year = 2000 - 1900; rs5c313_rtc_set_time(NULL, &tm); printk(KERN_ERR "RICHO RS5C313: invalid value, resetting to "