]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: ep93xx: switch to rtc_time64_to_tm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 08:00:02 +0000 (10:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 20:37:16 +0000 (22:37 +0200)
Call the 64bit version of rtc_time_to_tm now that the range is enforced by
the core.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ep93xx.c

index 32d7b3ec816d2cd2975cbf50c22fade891f0b5ad..60e390c6ef063fd44df1d4d161f49f8020a236be 100644 (file)
@@ -59,7 +59,7 @@ static int ep93xx_rtc_read_time(struct device *dev, struct rtc_time *tm)
 
        time = readl(ep93xx_rtc->mmio_base + EP93XX_RTC_DATA);
 
-       rtc_time_to_tm(time, tm);
+       rtc_time64_to_tm(time, tm);
        return 0;
 }