summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-06 01:59:57 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-16 11:12:09 +0100
commitb1b686e4b0d165ae7c1e356ecf8da790ee8f8dcf (patch)
tree307603f3460db94e7198331ce2b17b74c3ff97b5
parent9cf71edb024a919a8ed8957748885d1e1e8d231a (diff)
downloadlinux-b1b686e4b0d165ae7c1e356ecf8da790ee8f8dcf.tar.gz
rtc: au1xxx: set range
The Alchemy counter0 is a 32bit seconds counter.

Link: https://lore.kernel.org/r/20200306005958.39203-3-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--drivers/rtc/rtc-au1xxx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-au1xxx.c b/drivers/rtc/rtc-au1xxx.c
index 73aeb15f9491..e186fb5cfffd 100644
--- a/drivers/rtc/rtc-au1xxx.c
+++ b/drivers/rtc/rtc-au1xxx.c
@@ -100,6 +100,7 @@ static int au1xtoy_rtc_probe(struct platform_device *pdev)
 		return PTR_ERR(rtcdev);
 
 	rtcdev->ops = &au1xtoy_rtc_ops;
+	rtcdev->range_max = U32_MAX;
 
 	platform_set_drvdata(pdev, rtcdev);