rtc: pcap: Drop no-op remove function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 2 Oct 2023 08:05:24 +0000 (10:05 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 13 Oct 2023 10:29:08 +0000 (12:29 +0200)
A remove callback that just returns 0 is equivalent to no callback at
all as can be seen in platform_remove(). So simplify accordingly.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231002080529.2535610-8-u.kleine-koenig@pengutronix.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcap.c

index 8c7a98a5452c6a2020d326499696fb4f84c9a97e..d6651611a0c6a62446fca1644333626072601ca9 100644 (file)
@@ -166,13 +166,7 @@ static int __init pcap_rtc_probe(struct platform_device *pdev)
        return devm_rtc_register_device(pcap_rtc->rtc);
 }
 
-static int __exit pcap_rtc_remove(struct platform_device *pdev)
-{
-       return 0;
-}
-
 static struct platform_driver pcap_rtc_driver = {
-       .remove = __exit_p(pcap_rtc_remove),
        .driver = {
                .name  = "pcap-rtc",
        },