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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 141626d commit 94a2da3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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)