mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
wifi: Switch back to struct platform_driver::remove()
After commit 0edb555a65 ("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/wireless 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.
En passant several whitespace changes are done to make indentation
consistent in the struct initializers.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Acked-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241106170706.38922-2-u.kleine-koenig@baylibre.com
This commit is contained in:
committed by
Kalle Valo
parent
4fa4f049dc
commit
b41f96ecb9
@@ -594,7 +594,7 @@ static void brcmf_common_pd_remove(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static struct platform_driver brcmf_pd = {
|
||||
.remove_new = brcmf_common_pd_remove,
|
||||
.remove = brcmf_common_pd_remove,
|
||||
.driver = {
|
||||
.name = BRCMFMAC_PDATA_NAME,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user