summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-21 22:36:16 +0100
committerMatt Turner <mattst88@gmail.com>2018-04-07 15:03:42 -0700
commit54f16b1967bd7c6a252b3c128032deb37cc61cf3 (patch)
treed6e7b57121e7a8ce06a128976de15fccff251122 /arch/alpha
parent9917df83a9d11c63a1c4b89ddd821357b7c20171 (diff)
downloadlinux-54f16b1967bd7c6a252b3c128032deb37cc61cf3.tar.bz2
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 'arch/alpha')
-rw-r--r--arch/alpha/kernel/rtc.c2
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