Skip to content

Commit 94a2da3

Browse files
Uwe Kleine-Königalexandrebelloni
authored andcommitted
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>
1 parent 141626d commit 94a2da3

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/rtc/rtc-pcap.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,7 @@ static int __init pcap_rtc_probe(struct platform_device *pdev)
166166
return devm_rtc_register_device(pcap_rtc->rtc);
167167
}
168168

169-
static int __exit pcap_rtc_remove(struct platform_device *pdev)
170-
{
171-
return 0;
172-
}
173-
174169
static struct platform_driver pcap_rtc_driver = {
175-
.remove = __exit_p(pcap_rtc_remove),
176170
.driver = {
177171
.name = "pcap-rtc",
178172
},

0 commit comments

Comments
 (0)