From: Alexandre Belloni Date: Wed, 9 Mar 2022 16:22:34 +0000 (+0100) Subject: rtc: ds1307: switch to RTC_FEATURE_UPDATE_INTERRUPT X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=000bf045c69b40f5fd9aac61414cbb44f322e7c0;p=linux.git rtc: ds1307: switch to RTC_FEATURE_UPDATE_INTERRUPT Stop using uie_unsupported and clear RTC_FEATURE_UPDATE_INTERRUPT instead. Signed-off-by: Alexandre Belloni Link: https://lore.kernel.org/r/20220309162301.61679-3-alexandre.belloni@bootlin.com --- diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 336cb9aa5e336..d51565bcc1896 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -1955,7 +1955,7 @@ static int ds1307_probe(struct i2c_client *client, dev_info(ds1307->dev, "'wakeup-source' is set, request for an IRQ is disabled!\n"); /* We cannot support UIE mode if we do not have an IRQ line */ - ds1307->rtc->uie_unsupported = 1; + clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, ds1307->rtc->features); } if (want_irq) {