]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: pic32: stop setting max_user_freq
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 1 Nov 2025 00:45:05 +0000 (01:45 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 3 Nov 2025 13:38:38 +0000 (14:38 +0100)
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-3-c9a274fd6883@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pic32.c

index 2812da2c50c5141c0b533cb7fc4be37a6d03ea0c..52c11532bc3a3696359ca56349b42860aa90c966 100644 (file)
@@ -340,8 +340,6 @@ static int pic32_rtc_probe(struct platform_device *pdev)
        if (ret)
                goto err_nortc;
 
-       pdata->rtc->max_user_freq = 128;
-
        pic32_rtc_setfreq(&pdev->dev, 1);
        ret = devm_request_irq(&pdev->dev, pdata->alarm_irq,
                               pic32_rtc_alarmirq, 0,