mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:31:14 +07:00
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:
parent
13bfa94225
commit
53523216ba
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user