mmc: dw_mmc: Make dw_mci_pltfm_remove() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 5 May 2023 22:15:06 +0000 (00:15 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Jun 2023 13:16:18 +0000 (15:16 +0200)
commit982fe2e093c62dbe144bd86c8b88cee65e5ad345
tree5f0fdf74f48bf8b08c7fe00d1f6a6f425b626ba1
parent2fba941d3423ee3084721ac7e64c042fefa9cdab
mmc: dw_mmc: Make dw_mci_pltfm_remove() return void

dw_mci_pltfm_remove() returned zero unconditionally. Make it return void
instead which makes its semantics a bit clearer.

Convert the drivers that use this function as .remove() callback to
.remove_new() which has the right prototype. This helps getting rid of
the platform_driver's remove callback that returns an int (which is
error prone). The other users didn't check the return value anyhow.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230505221506.1247424-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-bluefield.c
drivers/mmc/host/dw_mmc-k3.c
drivers/mmc/host/dw_mmc-pltfm.c
drivers/mmc/host/dw_mmc-pltfm.h
drivers/mmc/host/dw_mmc-starfive.c