diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-09-24 16:25:35 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-09-28 14:21:02 +0200 |
commit | ef2a7176c837183043ecfdc5e995a3275f37ee39 (patch) | |
tree | 5f0613ce3cc537e79bddff6692253fb81099fc68 /drivers/rtc | |
parent | 7d61cbb945a753af08e247b5f10bdd5dbb8d6c80 (diff) | |
download | linux-ef2a7176c837183043ecfdc5e995a3275f37ee39.tar.gz linux-ef2a7176c837183043ecfdc5e995a3275f37ee39.tar.bz2 linux-ef2a7176c837183043ecfdc5e995a3275f37ee39.zip |
rtc: armada38x: add range
The RTC is a 32bit seconds counter.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-armada38x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c index b74338d6dde6..d0278ad0a7f9 100644 --- a/drivers/rtc/rtc-armada38x.c +++ b/drivers/rtc/rtc-armada38x.c @@ -577,6 +577,8 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev) /* Update RTC-MBUS bridge timing parameters */ rtc->data->update_mbus_timing(rtc); + rtc->rtc_dev->range_max = U32_MAX; + ret = rtc_register_device(rtc->rtc_dev); if (ret) dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); |