Jamie Lenehan a16147965c 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>
2006-12-12 08:42:08 +09:00
..
2006-12-08 08:28:40 -08:00
2006-12-08 08:28:47 -08:00
2006-12-10 09:55:40 -08:00
2006-12-07 08:39:24 -08:00
2006-12-08 10:43:20 -08:00
2006-12-10 09:57:22 -08:00
2006-12-07 08:39:36 -08:00
2006-12-10 10:18:57 -08:00
2006-12-07 08:39:33 -08:00
2006-12-11 12:43:35 +01:00
2006-12-07 08:39:24 -08:00
2006-12-08 08:28:46 -08:00
2006-12-08 08:28:49 -08:00
2006-12-08 08:28:57 -08:00
2006-12-08 10:43:20 -08:00
2006-12-08 08:28:50 -08:00
2006-12-10 09:57:22 -08:00
2006-12-10 09:57:22 -08:00