rtc: ps3: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Mar 2019 12:44:28 +0000 (13:44 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:10 +0000 (10:07 +0200)
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>
drivers/rtc/rtc-ps3.c

index 446f5e2..f0336d6 100644 (file)
@@ -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);