From: Alexandre Belloni Date: Wed, 9 Mar 2022 16:23:00 +0000 (+0100) Subject: rtc: remove uie_unsupported X-Git-Tag: v6.1-rc5~1646^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a31d63632553a54af6c0c3c5b5930e931a94ee4;p=platform%2Fkernel%2Flinux-starfive.git rtc: remove uie_unsupported uie_unsupported is not used by any drivers anymore, remove it. Signed-off-by: Alexandre Belloni Link: https://lore.kernel.org/r/20220309162301.61679-29-alexandre.belloni@bootlin.com --- diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 40d504d..3c8eec2 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -399,9 +399,6 @@ int __devm_rtc_register_device(struct module *owner, struct rtc_device *rtc) if (!rtc->ops->set_alarm) clear_bit(RTC_FEATURE_ALARM, rtc->features); - if (rtc->uie_unsupported) - clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features); - if (rtc->ops->set_offset) set_bit(RTC_FEATURE_CORRECTION, rtc->features); diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 47fd1c2..1fd9c6a 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -110,8 +110,6 @@ struct rtc_device { struct hrtimer pie_timer; /* sub second exp, so needs hrtimer */ int pie_enabled; struct work_struct irqwork; - /* Some hardware can't support UIE mode */ - int uie_unsupported; /* * This offset specifies the update timing of the RTC.