diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-12-08 00:49:30 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-12-11 18:42:08 -0500 |
commit | a16147965ca7a84dc08c4457961782e06ac7cd0d (patch) | |
tree | 6bdca5d9351a33711d4c9097bbd6b22d8fa99be6 /sound/oss/emu10k1/timer.c | |
parent | 55eec11a50f4c5f53421f49e407e2c92cf25c3ca (diff) |
rtc: rtc-sh: fix rtc for out-by-one for the month.
The RMONCNT register, which holds the month in the RTC, takes a value
between 1 and 12 while the tm_mon field in the time structures takes
a value between 0 and 11. This wasn't being taken into account in
rtc-sh resulting in the month being out by one.
eg, on my board during boot the RTC is set to:
RTC is set to Thu Jul 01 09:00:00 1999
but "hwclock -r" immediately after logging in was showing:
Sun Aug 1 09:01:43 1999 0.000000 seconds
Signed-off-by: Jamie Lenehan <lenehan@twibble.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'sound/oss/emu10k1/timer.c')
0 files changed, 0 insertions, 0 deletions