diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-21 22:46:33 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-14 12:27:33 +0100 |
commit | 890ae7979758568734881ad0f382c4064e2386c3 (patch) | |
tree | 060351951b6fe5c84ed28a1c7be778f908cf3dd6 /arch/powerpc/kernel/time.c | |
parent | powerpc/vas: Add a couple of trace points (diff) | |
download | linux-890ae7979758568734881ad0f382c4064e2386c3.tar.xz linux-890ae7979758568734881ad0f382c4064e2386c3.zip |
powerpc/time: 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: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r-- | arch/powerpc/kernel/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index a32823dcd9a4..f7d96a68ecaa 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c @@ -1234,7 +1234,7 @@ void calibrate_delay(void) static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm) { ppc_md.get_rtc_time(tm); - return rtc_valid_tm(tm); + return 0; } static int rtc_generic_set_time(struct device *dev, struct rtc_time *tm) |