diff options
author | Ralf Baechle | 2007-10-12 00:46:09 +0200 |
---|---|---|
committer | Ralf Baechle | 2007-10-12 00:46:09 +0200 |
commit | 90b02340dcc6ce00bf22c48f4865915f5989e5e4 (patch) | |
tree | 763f07fe0025ac5cd54fa361ec5d77ad76b5547c /arch/mips/sibyte/swarm/rtc_xicor1241.c | |
parent | [MIPS] Deforest the function pointer jungle in the time code. (diff) | |
download | kernel-qcow2-linux-90b02340dcc6ce00bf22c48f4865915f5989e5e4.tar.gz kernel-qcow2-linux-90b02340dcc6ce00bf22c48f4865915f5989e5e4.tar.xz kernel-qcow2-linux-90b02340dcc6ce00bf22c48f4865915f5989e5e4.zip |
[MIPS] Switch from to_tm to rtc_time_to_tm
This replaces the MIPS-specific to_tm function with the generic
rtc_time_to_tm function. The big difference between the two functions is
that rtc_time_to_tm uses epoch 70 while to_tm uses 1970, so the result of
rtc_time_to_tm needs to be fixed up.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sibyte/swarm/rtc_xicor1241.c')
-rw-r--r-- | arch/mips/sibyte/swarm/rtc_xicor1241.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/sibyte/swarm/rtc_xicor1241.c b/arch/mips/sibyte/swarm/rtc_xicor1241.c index f4a178836415..ff3e5dabb348 100644 --- a/arch/mips/sibyte/swarm/rtc_xicor1241.c +++ b/arch/mips/sibyte/swarm/rtc_xicor1241.c @@ -115,7 +115,8 @@ int xicor_set_time(unsigned long t) int tmp; unsigned long flags; - to_tm(t, &tm); + rtc_time_to_tm(t, &tm); + tm.tm_year += 1900; spin_lock_irqsave(&rtc_lock, flags); /* unlock writes to the CCR */ |