summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-at91rm9200.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 16:17:28 -0400
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 16:23:14 -0400
commit6c78a872a673c467c747e2eafc07289d921d3178 (patch)
tree483dc74031665ae4d9e899802e3c84601011639f /drivers/rtc/rtc-at91rm9200.c
parentc59b3715ac16544f8f68ab7af03f108e339b36aa (diff)
rtc: at91rm9200: add range
The at91rm9200 RTC can support dates from 1900-01-01 00:00:00 to 2099-12-31 23:59:59. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-at91rm9200.c')
-rw-r--r--drivers/rtc/rtc-at91rm9200.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c
index de81ecedd571..caa71d04e989 100644
--- a/drivers/rtc/rtc-at91rm9200.c
+++ b/drivers/rtc/rtc-at91rm9200.c
@@ -440,6 +440,8 @@ static int __init at91_rtc_probe(struct platform_device *pdev)
440 device_init_wakeup(&pdev->dev, 1); 440 device_init_wakeup(&pdev->dev, 1);
441 441
442 rtc->ops = &at91_rtc_ops; 442 rtc->ops = &at91_rtc_ops;
443 rtc->range_min = RTC_TIMESTAMP_BEGIN_1900;
444 rtc->range_max = RTC_TIMESTAMP_END_2099;
443 ret = rtc_register_device(rtc); 445 ret = rtc_register_device(rtc);
444 if (ret) 446 if (ret)
445 goto err_clk; 447 goto err_clk;