Skip to content

Commit 1350b94

Browse files
rtc: efi: switch to RTC_FEATURE_UPDATE_INTERRUPT
Stop using uie_unsupported and clear RTC_FEATURE_UPDATE_INTERRUPT instead. Also the driver doesn't supports UIE because it doesn't handle interrupts so set RTC_FEATURE_ALARM_WAKEUP_ONLY,. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220309162301.61679-24-alexandre.belloni@bootlin.com
1 parent 8aa7436 commit 1350b94

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/rtc/rtc-efi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ static int __init efi_rtc_probe(struct platform_device *dev)
268268
platform_set_drvdata(dev, rtc);
269269

270270
rtc->ops = &efi_rtc_ops;
271-
rtc->uie_unsupported = 1;
271+
clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features);
272+
set_bit(RTC_FEATURE_ALARM_WAKEUP_ONLY, rtc->features);
272273

273274
return devm_rtc_register_device(rtc);
274275
}

0 commit comments

Comments
 (0)