Skip to content
Snippets Groups Projects
Commit 41253be4 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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

parent f013dacf
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Changes for U-Boot 1.1.4: 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 * Fix U-Boot compilation for MIPS boards using ELDK 4.0
* Add support for TQM8541/8555 boards, TQM85xx support reworked: * Add support for TQM8541/8555 boards, TQM85xx support reworked:
......
...@@ -226,7 +226,7 @@ rtc_init(void) ...@@ -226,7 +226,7 @@ rtc_init(void)
if (bbclk.year>9) { if (bbclk.year>9) {
printf("ds1302: Year was corrupted, fixing\n"); printf("ds1302: Year was corrupted, fixing\n");
bbclk.year10=100; /* 2000 - why not? ;) */ bbclk.year10=100/10; /* 2000 - why not? ;) */
bbclk.year=0; bbclk.year=0;
mod=1; mod=1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment