aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-03 22:12:38 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-03 22:12:38 +0100
commit30adde6b181104249fb6c17b72a9bf12332bc053 (patch)
treedaff5ad42c45f0a55a2c10dbc17570e39f918a67 /drivers/rtc
parentrtc: rx8581: Add support for Epson rx8571 RTC (diff)
downloadlinux-dev-30adde6b181104249fb6c17b72a9bf12332bc053.tar.xz
linux-dev-30adde6b181104249fb6c17b72a9bf12332bc053.zip
rtc: imx-sc: use rtc_time64_to_tm
The imx-sc driver properly sets range_max, use rtc_time64_to_tm() instead of the deprecated rtc_time_to_tm() Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-imx-sc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-imx-sc.c b/drivers/rtc/rtc-imx-sc.c
index 60570a278bb0..19642bfd913a 100644
--- a/drivers/rtc/rtc-imx-sc.c
+++ b/drivers/rtc/rtc-imx-sc.c
@@ -41,7 +41,7 @@ static int imx_sc_rtc_read_time(struct device *dev, struct rtc_time *tm)
return ret;
}
- rtc_time_to_tm(msg.time, tm);
+ rtc_time64_to_tm(msg.time, tm);
return 0;
}