diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-20 13:44:25 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-04 10:07:09 +0200 |
commit | 70c805c23fce48ff48c222e1ba3f8bff63cfe26f (patch) | |
tree | f5a8beabf307c6b84fe823b07775a242859f1a7e /drivers/rtc/rtc-ps3.c | |
parent | be8bf986c0bf97701cb871cb12cdb405b4e54ef9 (diff) | |
download | linux-70c805c23fce48ff48c222e1ba3f8bff63cfe26f.tar.gz linux-70c805c23fce48ff48c222e1ba3f8bff63cfe26f.tar.bz2 linux-70c805c23fce48ff48c222e1ba3f8bff63cfe26f.zip |
rtc: ps3: switch to rtc_time64_to_tm/rtc_tm_to_time64
Call the 64bit versions of rtc_tm time conversion as the PS3 handles 64bit
values.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ps3.c')
-rw-r--r-- | drivers/rtc/rtc-ps3.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-ps3.c b/drivers/rtc/rtc-ps3.c index 347288bff438..bffc5713e16f 100644 --- a/drivers/rtc/rtc-ps3.c +++ b/drivers/rtc/rtc-ps3.c @@ -40,16 +40,13 @@ static u64 read_rtc(void) static int ps3_get_time(struct device *dev, struct rtc_time *tm) { - rtc_time_to_tm(read_rtc() + ps3_os_area_get_rtc_diff(), tm); + rtc_time64_to_tm(read_rtc() + ps3_os_area_get_rtc_diff(), tm); return 0; } static int ps3_set_time(struct device *dev, struct rtc_time *tm) { - unsigned long now; - - rtc_tm_to_time(tm, &now); - ps3_os_area_set_rtc_diff(now - read_rtc()); + ps3_os_area_set_rtc_diff(rtc_tm_to_time64(tm) - read_rtc()); return 0; } |