Commit 3cfe5260 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: pm8xxx: set range

The pm8xxx are 32bit seconds counter.

Link: https://lore.kernel.org/r/20200306073758.58050-2-alexandre.belloni@bootlin.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent d5d55b70
...@@ -491,6 +491,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev) ...@@ -491,6 +491,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
return PTR_ERR(rtc_dd->rtc); return PTR_ERR(rtc_dd->rtc);
rtc_dd->rtc->ops = &pm8xxx_rtc_ops; rtc_dd->rtc->ops = &pm8xxx_rtc_ops;
rtc_dd->rtc->range_max = U32_MAX;
/* Request the alarm IRQ */ /* Request the alarm IRQ */
rc = devm_request_any_context_irq(&pdev->dev, rtc_dd->rtc_alarm_irq, rc = devm_request_any_context_irq(&pdev->dev, rtc_dd->rtc_alarm_irq,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment