diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-03-09 17:22:38 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-03-23 19:58:39 +0100 |
commit | 965994736554aa6b356ddcd9751cc5c450aaf5f8 (patch) | |
tree | 3c6c92f3e49da565780f776eca035bf73639b744 | |
parent | ba39374bc988c6a8ff81811d05839490457e79a5 (diff) | |
download | lwn-965994736554aa6b356ddcd9751cc5c450aaf5f8.tar.gz lwn-965994736554aa6b356ddcd9751cc5c450aaf5f8.zip |
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
-rw-r--r-- | drivers/rtc/rtc-opal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-opal.c b/drivers/rtc/rtc-opal.c index f8f49a969c23..ad41aaf8a17f 100644 --- a/drivers/rtc/rtc-opal.c +++ b/drivers/rtc/rtc-opal.c @@ -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); } |