mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[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]>
This commit is contained in:
parent
6b318f66dc
commit
f62bacd4d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue