summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/dw_mmc-starfive.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-09-27 16:58:33 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2024-10-14 12:29:01 +0200
commit078e548af9c3a6a2c2db7c967afe37884a02b0a4 (patch)
tree303ba18d6e9dd3d32d70d5eb6646361d8032f0c5 /drivers/mmc/host/dw_mmc-starfive.c
parent4dede2b76f4a760e948e1a49b1520881cb459bd3 (diff)
downloadlinux-078e548af9c3a6a2c2db7c967afe37884a02b0a4.tar.gz
linux-078e548af9c3a6a2c2db7c967afe37884a02b0a4.tar.bz2
linux-078e548af9c3a6a2c2db7c967afe37884a02b0a4.zip
mmc: 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/mmc 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://lore.kernel.org/r/20240927145832.754697-2-u.kleine-koenig@baylibre.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc-starfive.c')
-rw-r--r--drivers/mmc/host/dw_mmc-starfive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc-starfive.c b/drivers/mmc/host/dw_mmc-starfive.c
index b4d81ef0f3af..34964b0dab21 100644
--- a/drivers/mmc/host/dw_mmc-starfive.c
+++ b/drivers/mmc/host/dw_mmc-starfive.c
@@ -115,7 +115,7 @@ static int dw_mci_starfive_probe(struct platform_device *pdev)
static struct platform_driver dw_mci_starfive_driver = {
.probe = dw_mci_starfive_probe,
- .remove_new = dw_mci_pltfm_remove,
+ .remove = dw_mci_pltfm_remove,
.driver = {
.name = "dwmmc_starfive",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,