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: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
Alexandre Belloni 2019-04-19 10:24:57 +02:00
parent 13bfa94225
commit 53523216ba
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ static int ds2404_read_time(struct device *dev, struct rtc_time *dt)
ds2404_read_memory(dev, 0x203, 4, (u8 *)&time);
time = le32_to_cpu(time);
rtc_time_to_tm(time, dt);
rtc_time64_to_tm(time, dt);
return 0;
}