rtc: mxc_v2: use rtc_time64_to_tm in mxc_rtc_read_alarm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 May 2018 08:50:03 +0000 (10:50 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 May 2018 08:50:03 +0000 (10:50 +0200)
Use the 64-bit version of rtc_time_to_tm in mxc_rtc_read_alarm

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

index 24ca74ca632a041b8951c4610222060e2ad5a991..c75f26dc8fcc461a1180e86dda0331dfc5e6ac86 100644 (file)
@@ -193,7 +193,7 @@ static int mxc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
        if (ret)
                return ret;
 
-       rtc_time_to_tm(readl(ioaddr + SRTC_LPSAR), &alrm->time);
+       rtc_time64_to_tm(readl(ioaddr + SRTC_LPSAR), &alrm->time);
        alrm->pending = !!(readl(ioaddr + SRTC_LPSR) & SRTC_LPSR_ALP);
        return mxc_rtc_unlock(pdata);
 }