diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-21 22:36:16 +0100 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2018-04-07 15:03:42 -0700 |
commit | 54f16b1967bd7c6a252b3c128032deb37cc61cf3 (patch) | |
tree | d6e7b57121e7a8ce06a128976de15fccff251122 | |
parent | 9917df83a9d11c63a1c4b89ddd821357b7c20171 (diff) |
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>
-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 |