summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-19 10:50:03 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-19 10:50:03 +0200
commit7e83f03fad3e404778fbcfb16f91a09aecf27e04 (patch)
tree7738b2ecbb08ab1501ec8a8ad2d10c5e5e0bbc03
parent95fbfa14b431d4d7213b8e0e167563f7a11dd5e7 (diff)
downloadlwn-7e83f03fad3e404778fbcfb16f91a09aecf27e04.tar.gz
lwn-7e83f03fad3e404778fbcfb16f91a09aecf27e04.zip
rtc: mxc_v2: use rtc_time64_to_tm in mxc_rtc_read_alarm
Use the 64-bit version of rtc_time_to_tm in mxc_rtc_read_alarm Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--drivers/rtc/rtc-mxc_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c
index 24ca74ca632a..c75f26dc8fcc 100644
--- a/drivers/rtc/rtc-mxc_v2.c
+++ b/drivers/rtc/rtc-mxc_v2.c
@@ -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);
}