mmc: sdhci_am654: Properly handle failures in .remove()
authorYangtao Li <frank.li@vivo.com>
Thu, 27 Jul 2023 07:00:48 +0000 (15:00 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 15 Aug 2023 10:48:21 +0000 (12:48 +0200)
commit854034e2bcccf932d0a0d3f9cf3149d6ebcf145c
tree450ba703a37873bc6be62631bb5ae1397798f3b8
parent8d7770345db715660dd751e195d934960434c876
mmc: sdhci_am654: Properly handle failures in .remove()

Returning an error code in a platform driver's remove function is wrong
most of the time and there is an effort to make the callback return
void. To prepare this rework the function not to exit early.

Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20230727070051.17778-59-frank.li@vivo.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_am654.c