Skip to content

Commit

Permalink
rtc-rs5c313.c: rtc_time value are fixed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kogiidena authored and Linus Torvalds committed May 11, 2007
1 parent 9a3f1d5 commit 5a6a078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/rtc/rtc-rs5c313.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 5a6a078

Please sign in to comment.