diff mbox series

rtc: brcmstb-waketimer: switch to rtc_time64_to_tm

Message ID 20190320123941.13971-1-alexandre.belloni@bootlin.com
State Superseded
Headers show
Series rtc: brcmstb-waketimer: switch to rtc_time64_to_tm | expand

Commit Message

Alexandre Belloni March 20, 2019, 12:39 p.m. UTC
Call the 64bit version of rtc_time_to_tm as the range is enforced by the
core.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/rtc-brcmstb-waketimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c
index f4010a75f2be..ee6021b3d967 100644
--- a/drivers/rtc/rtc-brcmstb-waketimer.c
+++ b/drivers/rtc/rtc-brcmstb-waketimer.c
@@ -132,7 +132,7 @@  static int brcmstb_waketmr_gettime(struct device *dev,
 
 	wktmr_read(timer, &now);
 
-	rtc_time_to_tm(now.sec, tm);
+rtc_time64_to_tm(now.sec, tm);
 
 	return 0;
 }