From: dann frazier Date: Tue, 31 Mar 2009 22:24:52 +0000 (-0700) Subject: rtc-parisc: use rtc_valid_tm() in parisc_get_time X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f62bacd4d48a1a6b8931a0140fb2324a06dd89fe;p=linux-2.6-omap-h63xx.git 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 Cc: Alessandro Zummo Cc: Kyle McMartin Cc: Grant Grundler Cc: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-parisc.c b/drivers/rtc/rtc-parisc.c index ee4e9a3fb58..0477cc129c6 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) 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)