mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-24 18:44:07 +08:00
rtc: opal: switch to RTC_FEATURE_UPDATE_INTERRUPT
Stop using uie_unsupported and clear RTC_FEATURE_UPDATE_INTERRUPT instead. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220309162301.61679-7-alexandre.belloni@bootlin.com
This commit is contained in:
parent
ba39374bc9
commit
9659947365
@ -250,7 +250,7 @@ static int opal_rtc_probe(struct platform_device *pdev)
|
||||
rtc->ops = &opal_rtc_ops;
|
||||
rtc->range_min = RTC_TIMESTAMP_BEGIN_0000;
|
||||
rtc->range_max = RTC_TIMESTAMP_END_9999;
|
||||
rtc->uie_unsupported = 1;
|
||||
clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features);
|
||||
|
||||
return devm_rtc_register_device(rtc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user