]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rtc-sh: Zero out tm value for invalid rtc states.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 7 Nov 2007 11:13:24 +0000 (20:13 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 7 Nov 2007 11:13:24 +0000 (20:13 +0900)
commit9a5b7c8fde9a1399f0dff333627803f81f128fe3
tree404f2eb2dc2482dbde88b814e9f44462816f1d1c
parent9669ce5691d1b14180a0f5a56196d97afb7dbd39
rtc: rtc-sh: Zero out tm value for invalid rtc states.

Follows the changes of some of the other RTC drivers. If the tm
value is bogus, just zero it out. Adds some sanity for RTC_RD_TIME.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/rtc/rtc-sh.c