diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-20 13:40:39 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-04 10:07:09 +0200 |
commit | 255c43ca01427442447173bc37678eb458bedec7 (patch) | |
tree | baa8f524511d3b3f36b6e9d2e80b07747321a62c | |
parent | rtc: at91sam9: convert to devm_rtc_allocate_device (diff) | |
download | linux-255c43ca01427442447173bc37678eb458bedec7.tar.xz linux-255c43ca01427442447173bc37678eb458bedec7.zip |
rtc: at91sam9: set range
The AT91 RTT is a 32bit second counter that is saved in a 32bit global
purpose register.
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-at91sam9.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c index cbbf8121dca0..5ab13fe56164 100644 --- a/drivers/rtc/rtc-at91sam9.c +++ b/drivers/rtc/rtc-at91sam9.c @@ -425,6 +425,7 @@ static int at91_rtc_probe(struct platform_device *pdev) } rtc->rtcdev->ops = &at91_rtc_ops; + rtc->rtcdev->range_max = U32_MAX; /* register irq handler after we know what name we'll use */ ret = devm_request_irq(&pdev->dev, rtc->irq, at91_rtc_interrupt, |