diff options
author | Julien BLACHE <jblache@debian.org> | 2006-07-08 22:21:24 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-07-13 20:26:18 (GMT) |
commit | d1d60ded2b6cca40e2f14ea2771cbe815c11abb5 (patch) | |
tree | 9ddaaf947df5c55c775f6a0d958628af48e9e333 /arch/mips/sgi-ip22 | |
parent | ece2246ebda3d86cedb9414e7771862a6c9a054c (diff) | |
download | linux-d1d60ded2b6cca40e2f14ea2771cbe815c11abb5.tar.xz |
[MIPS] IP22 Fix brown paper bag in RTC code.
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>
Diffstat (limited to 'arch/mips/sgi-ip22')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/sgi-ip22/ip22-time.c b/arch/mips/sgi-ip22/ip22-time.c index 4aeb4c5..0e06189 100644 --- a/arch/mips/sgi-ip22/ip22-time.c +++ b/arch/mips/sgi-ip22/ip22-time.c @@ -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); |