Commit 5e2954fd authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: goldfish: add range

This RTC has a 64bit nanosecond counter.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 409b84e3
...@@ -210,6 +210,7 @@ static int goldfish_rtc_probe(struct platform_device *pdev) ...@@ -210,6 +210,7 @@ static int goldfish_rtc_probe(struct platform_device *pdev)
return PTR_ERR(rtcdrv->rtc); return PTR_ERR(rtcdrv->rtc);
rtcdrv->rtc->ops = &goldfish_rtc_ops; rtcdrv->rtc->ops = &goldfish_rtc_ops;
rtcdrv->rtc->range_max = U64_MAX / NSEC_PER_SEC;
err = devm_request_irq(&pdev->dev, rtcdrv->irq, err = devm_request_irq(&pdev->dev, rtcdrv->irq,
goldfish_rtc_interrupt, goldfish_rtc_interrupt,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment