Commit f62bacd4 authored by dann frazier's avatar dann frazier Committed by Linus Torvalds

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: default avatardann 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6b318f66
...@@ -20,7 +20,7 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm) ...@@ -20,7 +20,7 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm)
if (ret & RTC_BATT_BAD) if (ret & RTC_BATT_BAD)
return -EOPNOTSUPP; return -EOPNOTSUPP;
return 0; return rtc_valid_tm(tm);
} }
static int parisc_set_time(struct device *dev, struct rtc_time *tm) static int parisc_set_time(struct device *dev, struct rtc_time *tm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment