diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-10-03 12:01:03 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-05 01:39:56 +0200 |
commit | e96321fad3ad087f2fd0a93e44bb3ac878f5900f (patch) | |
tree | 93344f73d561be3ffb308483cb969fe4527cd091 /drivers/net/ethernet/i825xx | |
parent | net: dsa: bcm_sf2: fix crossbar port bitwidth logic (diff) | |
download | linux-e96321fad3ad087f2fd0a93e44bb3ac878f5900f.tar.xz linux-e96321fad3ad087f2fd0a93e44bb3ac878f5900f.zip |
net: ethernet: 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/ethernet 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/18f7c585a1a8a8ac8b03a2fca7de19bd5c52ac2b.1727949050.git.u.kleine-koenig@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/i825xx')
-rw-r--r-- | drivers/net/ethernet/i825xx/sni_82596.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/i825xx/sni_82596.c b/drivers/net/ethernet/i825xx/sni_82596.c index 813403c2628f..baa598988f47 100644 --- a/drivers/net/ethernet/i825xx/sni_82596.c +++ b/drivers/net/ethernet/i825xx/sni_82596.c @@ -168,7 +168,7 @@ static void sni_82596_driver_remove(struct platform_device *pdev) static struct platform_driver sni_82596_driver = { .probe = sni_82596_probe, - .remove_new = sni_82596_driver_remove, + .remove = sni_82596_driver_remove, .driver = { .name = sni_82596_string, }, |