summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ps3.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-20 13:44:28 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 10:07:10 +0200
commit72dd89c0bcd3d1def1eb6e8a8ecd8456d9bea288 (patch)
tree7189377bb30f20f21995dbf849087333a51789aa /drivers/rtc/rtc-ps3.c
parent0b5e47bbaa5ea5a91c8bfc9249fcb34203c66390 (diff)
downloadlinux-72dd89c0bcd3d1def1eb6e8a8ecd8456d9bea288.tar.gz
linux-72dd89c0bcd3d1def1eb6e8a8ecd8456d9bea288.tar.bz2
linux-72dd89c0bcd3d1def1eb6e8a8ecd8456d9bea288.zip
rtc: ps3: set range
The PS3 has a 64bit second counter from 2000. While this exceeds the 64bit UNIX timestamp, there is not doubt that non of them will still be working by then. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ps3.c')
-rw-r--r--drivers/rtc/rtc-ps3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ps3.c b/drivers/rtc/rtc-ps3.c
index 446f5e23301a..f0336d691e6c 100644
--- a/drivers/rtc/rtc-ps3.c
+++ b/drivers/rtc/rtc-ps3.c
@@ -52,6 +52,7 @@ static int __init ps3_rtc_probe(struct platform_device *dev)
return PTR_ERR(rtc);
rtc->ops = &ps3_rtc_ops;
+ rtc->range_max = U64_MAX;
platform_set_drvdata(dev, rtc);