Fix data overflow (typo?) in rtc/ds1302.c

This commit is contained in:
Wolfgang Denk 2005-12-04 11:20:57 +01:00
parent f013dacf0a
commit 41253be442
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
Changes for U-Boot 1.1.4:
======================================================================
* Fix data overflow (typo?) in rtc/ds1302.c
* Fix U-Boot compilation for MIPS boards using ELDK 4.0
* Add support for TQM8541/8555 boards, TQM85xx support reworked:

View File

@ -226,7 +226,7 @@ rtc_init(void)
if (bbclk.year>9) {
printf("ds1302: Year was corrupted, fixing\n");
bbclk.year10=100; /* 2000 - why not? ;) */
bbclk.year10=100/10; /* 2000 - why not? ;) */
bbclk.year=0;
mod=1;
}