sh: sh-rtc invalid time rework
commitedf22477dab5ff3be612af56ee4300ca63e11d06
authorMagnus Damm <damm@igel.co.jp>
Thu, 19 Mar 2009 10:10:44 +0000 (19 10:10 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 20 Mar 2009 09:57:30 +0000 (20 18:57 +0900)
treed22c64a0478f9f304b720f8be74245edad1bee55
parent9cd88b90a6008b0d744187fab80ade4c81c6536f
sh: sh-rtc invalid time rework

This patch modifies invalid time handling in the
SuperH RTC driver. Instead of zeroing the returned
value at read-out time we just return an error code
and reset invalid values during probe.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/rtc/rtc-sh.c