diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-21 22:36:16 +0100 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2018-04-08 00:03:42 +0200 |
commit | 54f16b1967bd7c6a252b3c128032deb37cc61cf3 (patch) | |
tree | d6e7b57121e7a8ce06a128976de15fccff251122 /arch/alpha/kernel/rtc.c | |
parent | alpha: rtc: remove unused set_mmss ops (diff) | |
download | linux-54f16b1967bd7c6a252b3c128032deb37cc61cf3.tar.xz linux-54f16b1967bd7c6a252b3c128032deb37cc61cf3.zip |
alpha: rtc: stop validating rtc_time in .read_time
The RTC core is always calling rtc_valid_tm after the read_time callback.
It is not necessary to call it just before returning from the callback.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | arch/alpha/kernel/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/rtc.c b/arch/alpha/kernel/rtc.c index 0816e6c747e8..1376a2867048 100644 --- a/arch/alpha/kernel/rtc.c +++ b/arch/alpha/kernel/rtc.c @@ -97,7 +97,7 @@ alpha_rtc_read_time(struct device *dev, struct rtc_time *tm) tm->tm_year = year; } - return rtc_valid_tm(tm); + return 0; } static int |