Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+1 -1
+1 -1
drivers/rtc/rtc-opal.c
··· 250 250 rtc->ops = &opal_rtc_ops; 251 251 rtc->range_min = RTC_TIMESTAMP_BEGIN_0000; 252 252 rtc->range_max = RTC_TIMESTAMP_END_9999; 253 - rtc->uie_unsupported = 1; 253 + clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features); 254 254 255 255 return devm_rtc_register_device(rtc); 256 256 }