wifi: libertas: cleanup SDIO reset
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 25 Jul 2023 06:04:46 +0000 (09:04 +0300)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Aug 2023 14:49:01 +0000 (17:49 +0300)
commit6c968e90198fbb2d923c4e47b7303c3ad2c25a71
treee267c17c881e4298c5c228688e921a3388cb73ca
parent2c531d28f8e938db0dfdee16f251b1ca55bc4a8b
wifi: libertas: cleanup SDIO reset

Embed SDIO reset worker in 'struct if_sdio_card' and so
drop 'reset_host' and 'card_reset_work' static variables,
adjust related code. Not sure whether it's possible to do
something useful on 'mmc_add_host()' error, so just add
'dev_err()' to emit an error message.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230725060531.72968-4-dmantipov@yandex.ru
drivers/net/wireless/marvell/libertas/if_sdio.c