Mark Brown 9e3a4afd5a rtc: fix handling of missing tm_year data when reading alarms
When fixing up invalid years rtc_read_alarm() was calling rtc_valid_tm()
as a boolean but rtc_valid_tm() returns zero on success or a negative
number if the time is not valid so the test was inverted.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-11-06 15:41:17 -08:00
..
2007-10-16 09:43:13 -07:00
2008-10-22 01:19:38 +02:00
2008-07-02 11:05:01 +02:00
2008-11-01 09:49:46 -07:00
2008-10-20 08:52:41 -07:00
2008-10-16 11:21:39 -07:00
2008-10-20 08:52:41 -07:00
2008-10-16 11:21:40 -07:00
2008-10-20 08:52:41 -07:00
2008-10-20 08:52:41 -07:00
2008-10-20 08:52:41 -07:00
2008-10-20 08:52:41 -07:00
2008-10-20 08:52:41 -07:00
2008-10-20 08:52:41 -07:00
2008-10-10 16:32:30 +00:00
2008-10-20 08:52:41 -07:00
2008-10-22 01:19:38 +02:00
2008-10-20 08:52:41 -07:00
2008-10-16 16:52:06 +02:00
2008-10-20 08:52:41 -07:00