mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
rtc: goldfish: add range
This RTC has a 64bit nanosecond counter. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
409b84e3eb
commit
5e2954fd8e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user