Commit 53523216 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: ds2404: switch to rtc_time64_to_tm

Call the 64bit version of rtc_time_to_tm now that the range is enforced by
the core.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 13bfa942
...@@ -206,7 +206,7 @@ static int ds2404_read_time(struct device *dev, struct rtc_time *dt) ...@@ -206,7 +206,7 @@ static int ds2404_read_time(struct device *dev, struct rtc_time *dt)
ds2404_read_memory(dev, 0x203, 4, (u8 *)&time); ds2404_read_memory(dev, 0x203, 4, (u8 *)&time);
time = le32_to_cpu(time); time = le32_to_cpu(time);
rtc_time_to_tm(time, dt); rtc_time64_to_tm(time, dt);
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