Skip to content

Commit 890ae79

Browse files
alexandrebellonimpe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 007bb7d commit 890ae79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ void calibrate_delay(void)
12341234
static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm)
12351235
{
12361236
ppc_md.get_rtc_time(tm);
1237-
return rtc_valid_tm(tm);
1237+
return 0;
12381238
}
12391239

12401240
static int rtc_generic_set_time(struct device *dev, struct rtc_time *tm)

0 commit comments

Comments
 (0)