aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/can/flexcan/flexcan-core.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-09-09 09:27:41 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-09-11 09:37:16 +0200
commit221013afb459e5deb8bd08e29b37050af5586d1c (patch)
tree33058677f03737961a218424c51a2a4af48054df /drivers/net/can/flexcan/flexcan-core.c
parentf3b6129b7d252b2fbdcac2e0005abc6804dc287c (diff)
downloadlinux-221013afb459e5deb8bd08e29b37050af5586d1c.tar.gz
linux-221013afb459e5deb8bd08e29b37050af5586d1c.tar.bz2
linux-221013afb459e5deb8bd08e29b37050af5586d1c.zip
can: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all can drivers to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20240909072742.381003-2-u.kleine-koenig@baylibre.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/flexcan/flexcan-core.c')
-rw-r--r--drivers/net/can/flexcan/flexcan-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/flexcan/flexcan-core.c b/drivers/net/can/flexcan/flexcan-core.c
index d11411029330..ac1a860986df 100644
--- a/drivers/net/can/flexcan/flexcan-core.c
+++ b/drivers/net/can/flexcan/flexcan-core.c
@@ -2385,7 +2385,7 @@ static struct platform_driver flexcan_driver = {
.of_match_table = flexcan_of_match,
},
.probe = flexcan_probe,
- .remove_new = flexcan_remove,
+ .remove = flexcan_remove,
.id_table = flexcan_id_table,
};