diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-19 10:24:57 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-19 22:37:16 +0200 |
commit | 53523216ba910935a483f4867077a7f3d1e8c506 (patch) | |
tree | 89ecd3178511cfe8cc4092b24826c9b63a7ffb59 /drivers/rtc | |
parent | 13bfa942254f0894f22bcbfccee3480df1bfd89d (diff) | |
download | linux-53523216ba910935a483f4867077a7f3d1e8c506.tar.bz2 |
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-ds2404.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds2404.c b/drivers/rtc/rtc-ds2404.c index 7b36c09bed10..17606e0fd28a 100644 --- a/drivers/rtc/rtc-ds2404.c +++ b/drivers/rtc/rtc-ds2404.c @@ -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; } |