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

rtc: sa1100: stop setting max_user_freq

max_user_freq has not been related to the hardware RTC since commit
6610e0893b8b ("RTC: Rework RTC code to use timerqueue for events"). Stop
setting it from individual driver to avoid confusing new contributors.

Link: https://patch.msgid.link/20251101-max_user_freq-v1-1-c9a274fd6883@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

-3
-3
drivers/rtc/rtc-sa1100.c
··· 40 40 41 41 #define RTC_DEF_DIVIDER (32768 - 1) 42 42 #define RTC_DEF_TRIM 0 43 - #define RTC_FREQ 1024 44 - 45 43 46 44 static irqreturn_t sa1100_rtc_interrupt(int irq, void *dev_id) 47 45 { ··· 200 202 } 201 203 202 204 info->rtc->ops = &sa1100_rtc_ops; 203 - info->rtc->max_user_freq = RTC_FREQ; 204 205 info->rtc->range_max = U32_MAX; 205 206 206 207 ret = devm_rtc_register_device(info->rtc);