mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
rtc-rs5c313.c: rtc_time value are fixed
Correct an initial value of suruct rtc_ time. Signed-off-by: kogiidena <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9a3f1d53db
commit
5a6a078950
1 changed files with 2 additions and 1 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Reference in a new issue