]> Git Repo - linux.git/commitdiff
rtc-parisc: use rtc_valid_tm() in parisc_get_time
authordann frazier <[email protected]>
Tue, 31 Mar 2009 22:24:52 +0000 (15:24 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 Apr 2009 15:59:24 +0000 (08:59 -0700)
Use the return value of rtc_valid_tm() instead of just returning 0.

Signed-off-by: dann frazier <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Kyle McMartin <[email protected]>
Cc: Grant Grundler <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-parisc.c

index ee4e9a3fb58318dd81e826a17e5be520e5d8874b..0477cc129c6de26247fc96a649c733e5fe2e2221 100644 (file)
@@ -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)
This page took 0.060303 seconds and 4 git commands to generate.