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

rtc: pcap: Drop no-op remove function

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>

authored by

Uwe Kleine-König and committed by
Alexandre Belloni
94a2da3e 141626db

-6
-6
drivers/rtc/rtc-pcap.c
··· 166 166 return devm_rtc_register_device(pcap_rtc->rtc); 167 167 } 168 168 169 - static int __exit pcap_rtc_remove(struct platform_device *pdev) 170 - { 171 - return 0; 172 - } 173 - 174 169 static struct platform_driver pcap_rtc_driver = { 175 - .remove = __exit_p(pcap_rtc_remove), 176 170 .driver = { 177 171 .name = "pcap-rtc", 178 172 },