diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-10-03 12:01:04 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-05 01:39:57 +0200 |
commit | 4818016ded1c340e6bbce46f7ee87811dc41215b (patch) | |
tree | 85c666fc809482276486e28cdde3fcd6d8384d15 /drivers/net/dsa/rzn1_a5psw.c | |
parent | net: ethernet: Switch back to struct platform_driver::remove() (diff) | |
download | linux-4818016ded1c340e6bbce46f7ee87811dc41215b.tar.xz linux-4818016ded1c340e6bbce46f7ee87811dc41215b.zip |
net: dsa: 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 platform drivers below drivers/net/dsa 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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/36da477cb9fa0bffec32d50c2cf3d18e94a0e7e3.1727949050.git.u.kleine-koenig@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/rzn1_a5psw.c')
-rw-r--r-- | drivers/net/dsa/rzn1_a5psw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c index 92e032972b34..1135a32e4b7e 100644 --- a/drivers/net/dsa/rzn1_a5psw.c +++ b/drivers/net/dsa/rzn1_a5psw.c @@ -1324,7 +1324,7 @@ static struct platform_driver a5psw_driver = { .of_match_table = a5psw_of_mtable, }, .probe = a5psw_probe, - .remove_new = a5psw_remove, + .remove = a5psw_remove, .shutdown = a5psw_shutdown, }; module_platform_driver(a5psw_driver); |