]> err.no Git - linux-2.6/commitdiff
rtc-rs5c313.c: rtc_time value are fixed
authorkogiidena <kogiidena@eggplant.ddo.jp>
Fri, 11 May 2007 05:22:56 +0000 (22:22 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 11 May 2007 15:29:35 +0000 (08:29 -0700)
Correct an initial value of suruct rtc_ time.

Signed-off-by: kogiidena <kogiidena@eggplant.ddo.jp>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-rs5c313.c

index 79ee371dd75bb258e17e77ec8651cd016d446406..f964d1d33c04d7b869e71993a4cc8b853c44ec74 100644 (file)
@@ -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 "