Skip to content

Commit

Permalink
rtc-parisc: use rtc_valid_tm() in parisc_get_time
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dann frazier authored and Linus Torvalds committed Apr 1, 2009
1 parent 6b318f6 commit f62bacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-parisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm)
if (ret & RTC_BATT_BAD)
return -EOPNOTSUPP;

return 0;
return rtc_valid_tm(tm);
}

static int parisc_set_time(struct device *dev, struct rtc_time *tm)
Expand Down

0 comments on commit f62bacd

Please sign in to comment.