mirror of https://gitee.com/openkylin/linux.git
rtc: sa1100: set range
The SA1100 RTC is a 32bit seconds counter. Link: https://lore.kernel.org/r/20200306010146.39762-2-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
f2997775b1
commit
e877ab7302
|
@ -212,6 +212,7 @@ int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info)
|
|||
|
||||
info->rtc->ops = &sa1100_rtc_ops;
|
||||
info->rtc->max_user_freq = RTC_FREQ;
|
||||
info->rtc->range_max = U32_MAX;
|
||||
|
||||
ret = rtc_register_device(info->rtc);
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in New Issue