aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-xgene.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-03-20 13:32:28 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-04 10:07:08 +0200
commit490595abfd36f29fbff9cb940531f1a7c58dd489 (patch)
tree036ce127f69d0e5b3109c97752921815632dab6e /drivers/rtc/rtc-xgene.c
parentrtc: xgene: fix possible race condition (diff)
downloadlinux-dev-490595abfd36f29fbff9cb940531f1a7c58dd489.tar.xz
linux-dev-490595abfd36f29fbff9cb940531f1a7c58dd489.zip
rtc: xgene: set range
CCVR is a 32bit second counter. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-xgene.c')
-rw-r--r--drivers/rtc/rtc-xgene.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-xgene.c b/drivers/rtc/rtc-xgene.c
index 2f741f455c30..e360f8917556 100644
--- a/drivers/rtc/rtc-xgene.c
+++ b/drivers/rtc/rtc-xgene.c
@@ -205,6 +205,7 @@ static int xgene_rtc_probe(struct platform_device *pdev)
/* HW does not support update faster than 1 seconds */
pdata->rtc->uie_unsupported = 1;
pdata->rtc->ops = &xgene_rtc_ops;
+ pdata->rtc->range_max = U32_MAX;
ret = rtc_register_device(pdata->rtc);
if (ret) {