diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-06 08:37:56 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-16 11:12:10 +0100 |
commit | 3cfe52607779a5c3752a73033a86385789ceb742 (patch) | |
tree | 8cc3b9b24659363ab1a92aeaaf29d532a5fa6b46 /drivers/rtc/rtc-pm8xxx.c | |
parent | d5d55b70984086bffe7a6321c0d28d3c7f41b9fa (diff) |
rtc: pm8xxx: set range
The pm8xxx are 32bit seconds counter.
Link: https://lore.kernel.org/r/20200306073758.58050-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-pm8xxx.c')
-rw-r--r-- | drivers/rtc/rtc-pm8xxx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index b97333c95e53..71bd56d32c90 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++ b/drivers/rtc/rtc-pm8xxx.c @@ -491,6 +491,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev) return PTR_ERR(rtc_dd->rtc); rtc_dd->rtc->ops = &pm8xxx_rtc_ops; + rtc_dd->rtc->range_max = U32_MAX; /* Request the alarm IRQ */ rc = devm_request_any_context_irq(&pdev->dev, rtc_dd->rtc_alarm_irq, |