rtc: imx-sc: use rtc_time64_to_tm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 3 Mar 2019 21:12:38 +0000 (22:12 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 3 Mar 2019 21:12:38 +0000 (22:12 +0100)
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>
drivers/rtc/rtc-imx-sc.c

index 60570a2..19642bf 100644 (file)
@@ -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;
 }