Commit 326bce07 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: starfire: switch to rtc_time64_to_tm

Call the 64bit version of rtc_tm time conversion.

Link: https://lore.kernel.org/r/20200306005910.38939-2-alexandre.belloni@bootlin.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 166b1332
...@@ -27,7 +27,7 @@ static u32 starfire_get_time(void) ...@@ -27,7 +27,7 @@ static u32 starfire_get_time(void)
static int starfire_read_time(struct device *dev, struct rtc_time *tm) static int starfire_read_time(struct device *dev, struct rtc_time *tm)
{ {
rtc_time_to_tm(starfire_get_time(), tm); rtc_time64_to_tm(starfire_get_time(), tm);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment