From: Alexandre Belloni Date: Wed, 20 Mar 2019 12:34:13 +0000 (+0100) Subject: rtc: goldfish: add range X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5e2954fd8e3f4e01cb7315e9950fb772b9402130;p=openwrt%2Fstaging%2Fblogic.git rtc: goldfish: add range This RTC has a 64bit nanosecond counter. Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-goldfish.c b/drivers/rtc/rtc-goldfish.c index d4cb33f209fb..354a1aa58495 100644 --- a/drivers/rtc/rtc-goldfish.c +++ b/drivers/rtc/rtc-goldfish.c @@ -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,