mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 23:29:46 +00:00
rtc: lpc32xx: set range
The LPC32xx RTC is a 32bit second counter. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
6bbad585fd
commit
3a13426908
@ -259,6 +259,7 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
|
|||||||
return PTR_ERR(rtc->rtc);
|
return PTR_ERR(rtc->rtc);
|
||||||
|
|
||||||
rtc->rtc->ops = &lpc32xx_rtc_ops;
|
rtc->rtc->ops = &lpc32xx_rtc_ops;
|
||||||
|
rtc->rtc->range_max = U32_MAX;
|
||||||
|
|
||||||
err = rtc_register_device(rtc->rtc);
|
err = rtc_register_device(rtc->rtc);
|
||||||
if (err)
|
if (err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user