Commit 9a8f2d12 authored by Alexandre Belloni's avatar Alexandre Belloni

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: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 24db953e
...@@ -132,7 +132,7 @@ static int brcmstb_waketmr_gettime(struct device *dev, ...@@ -132,7 +132,7 @@ static int brcmstb_waketmr_gettime(struct device *dev,
wktmr_read(timer, &now); wktmr_read(timer, &now);
rtc_time_to_tm(now.sec, tm); rtc_time64_to_tm(now.sec, tm);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment