OSDN Git Service

rtc: brcmstb-waketimer: switch to rtc_time64_to_tm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Mar 2019 17:17:19 +0000 (18:17 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:10 +0000 (10:07 +0200)
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>
drivers/rtc/rtc-brcmstb-waketimer.c

index f4010a7..a193396 100644 (file)
@@ -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;
 }