summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-goldfish.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-20 13:34:13 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 10:07:08 +0200
commit5e2954fd8e3f4e01cb7315e9950fb772b9402130 (patch)
tree7279b452eefa8879e97c5e3578d0b71793a7c6c1 /drivers/rtc/rtc-goldfish.c
parentrtc: goldfish: convert to devm_rtc_allocate_device (diff)
downloadlinux-5e2954fd8e3f4e01cb7315e9950fb772b9402130.tar.xz
linux-5e2954fd8e3f4e01cb7315e9950fb772b9402130.zip
rtc: goldfish: add range
This RTC has a 64bit nanosecond counter. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-goldfish.c')
-rw-r--r--drivers/rtc/rtc-goldfish.c1
1 files changed, 1 insertions, 0 deletions
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,