diff options
author | dann frazier <dannf@hp.com> | 2009-03-31 18:24:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:24 -0400 |
commit | f62bacd4d48a1a6b8931a0140fb2324a06dd89fe (patch) | |
tree | e6c9f437975d2ec96eeebb503ce66fabec0cf1ee /drivers/rtc | |
parent | 6b318f66dca829a72c974083cc10fd5556eec6f1 (diff) |
rtc-parisc: use rtc_valid_tm() in parisc_get_time
Use the return value of rtc_valid_tm() instead of just returning 0.
Signed-off-by: dann frazier <dannf@hp.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Grant Grundler <grundler@parisc-linux.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-parisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-parisc.c b/drivers/rtc/rtc-parisc.c index ee4e9a3fb583..0477cc129c6d 100644 --- a/drivers/rtc/rtc-parisc.c +++ b/drivers/rtc/rtc-parisc.c | |||
@@ -20,7 +20,7 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm) | |||
20 | if (ret & RTC_BATT_BAD) | 20 | if (ret & RTC_BATT_BAD) |
21 | return -EOPNOTSUPP; | 21 | return -EOPNOTSUPP; |
22 | 22 | ||
23 | return 0; | 23 | return rtc_valid_tm(tm); |
24 | } | 24 | } |
25 | 25 | ||
26 | static int parisc_set_time(struct device *dev, struct rtc_time *tm) | 26 | static int parisc_set_time(struct device *dev, struct rtc_time *tm) |