]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[MIPS] IP22 Fix brown paper bag in RTC code.
authorJulien BLACHE <jblache@debian.org>
Sat, 8 Jul 2006 22:21:24 +0000 (00:21 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jul 2006 20:26:18 +0000 (21:26 +0100)
This patch fixes a typo in arch/mips/sgi-ip22/ip22-time.c, leading to the
incorrect year being set into the RTC chip.

Signed-off-by: Julien BLACHE <jb@jblache.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sgi-ip22/ip22-time.c

index 4aeb4c55e184531eab188c60ebfe459ed37beeec..0e061890f7973fab7d33c114ae89a6820c6c44dd 100644 (file)
@@ -77,7 +77,7 @@ static int indy_rtc_set_time(unsigned long tim)
        save_control = hpc3c0->rtcregs[RTC_CMD] & 0xff;
        hpc3c0->rtcregs[RTC_CMD] = save_control | RTC_TE;
 
-       hpc3c0->rtcregs[RTC_YEAR] = BIN2BCD(tm.tm_sec);
+       hpc3c0->rtcregs[RTC_YEAR] = BIN2BCD(tm.tm_year);
        hpc3c0->rtcregs[RTC_MONTH] = BIN2BCD(tm.tm_mon);
        hpc3c0->rtcregs[RTC_DATE] = BIN2BCD(tm.tm_mday);
        hpc3c0->rtcregs[RTC_HOURS] = BIN2BCD(tm.tm_hour);