rtc: goldfish: add range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Mar 2019 12:34:13 +0000 (13:34 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:08 +0000 (10:07 +0200)
This RTC has a 64bit nanosecond counter.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-goldfish.c

index d4cb33f209fbc13b5061fd039c56c5d71e1ba716..354a1aa584950b513e1d3d528ddcea857c706e45 100644 (file)
@@ -210,6 +210,7 @@ static int goldfish_rtc_probe(struct platform_device *pdev)
                return PTR_ERR(rtcdrv->rtc);
 
        rtcdrv->rtc->ops = &goldfish_rtc_ops;
+       rtcdrv->rtc->range_max = U64_MAX / NSEC_PER_SEC;
 
        err = devm_request_irq(&pdev->dev, rtcdrv->irq,
                               goldfish_rtc_interrupt,