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>
This commit is contained in:
Alexandre Belloni 2019-03-25 18:17:19 +01:00
parent 24db953e94
commit 9a8f2d12ff
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }