aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-12-04 11:20:57 +0100
committerWolfgang Denk <wd@pollux.(none)>2005-12-04 11:20:57 +0100
commit41253be442e35f71fdf26dac71d78451858a1fc7 (patch)
tree6c6155e29b0d6583a21f97c1a60aa808b4f61039
parentf013dacf0a90667fbefe35580f8031a84caeb65e (diff)
downloadu-boot-midas-41253be442e35f71fdf26dac71d78451858a1fc7.tar.gz
u-boot-midas-41253be442e35f71fdf26dac71d78451858a1fc7.tar.bz2
u-boot-midas-41253be442e35f71fdf26dac71d78451858a1fc7.zip
Fix data overflow (typo?) in rtc/ds1302.c
-rw-r--r--CHANGELOG2
-rw-r--r--rtc/ds1302.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3762f2116e..4ed9d6e30b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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:
diff --git a/rtc/ds1302.c b/rtc/ds1302.c
index ec5616a677..98dce899a9 100644
--- a/rtc/ds1302.c
+++ b/rtc/ds1302.c
@@ -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;
}