aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-brcmstb-waketimer.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-25 18:17:19 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 10:07:10 +0200
commit9a8f2d12ffaf323f12a2ca3208bc3d47b2d9ca58 (patch)
tree11254e4355f6e09d354dea0f2dd2110d825ab7f7 /drivers/rtc/rtc-brcmstb-waketimer.c
parent24db953e942bd7a983e97892bdaddf69d00b1199 (diff)
downloadlinux-9a8f2d12ffaf323f12a2ca3208bc3d47b2d9ca58.tar.gz
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 <f.fainelli@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-brcmstb-waketimer.c')
-rw-r--r--drivers/rtc/rtc-brcmstb-waketimer.c2
1 files changed, 1 insertions, 1 deletions
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;
}