From: Alexandre Belloni Date: Mon, 25 Mar 2019 17:17:19 +0000 (+0100) Subject: rtc: brcmstb-waketimer: switch to rtc_time64_to_tm X-Git-Tag: v5.2-rc1~105^2~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a8f2d12ffaf323f12a2ca3208bc3d47b2d9ca58;p=thirdparty%2Fkernel%2Flinux.git rtc: brcmstb-waketimer: switch to rtc_time64_to_tm Call the 64bit version of rtc_time_to_tm as the range is enforced by the core. Reviewed-by: Florian Fainelli Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c index f4010a75f2bef..a193396a81408 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; }