From: Alexandre Belloni Date: Wed, 20 Mar 2019 12:40:39 +0000 (+0100) Subject: rtc: at91sam9: set range X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=255c43ca01427442447173bc37678eb458bedec7;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Alexandre Belloni --- 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,