diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-22 00:46:33 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-14 14:27:33 +0300 |
commit | 890ae7979758568734881ad0f382c4064e2386c3 (patch) | |
tree | 060351951b6fe5c84ed28a1c7be778f908cf3dd6 | |
parent | 007bb7d6c77ef2243dabf9c4132afa68bec82817 (diff) | |
download | linux-890ae7979758568734881ad0f382c4064e2386c3.tar.xz |
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>
-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) |