]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci-dove: Drop the use of sdhci_pltfm_free()
authorBinbin Zhou <zhoubinbin@loongson.cn>
Sat, 7 Jun 2025 07:36:44 +0000 (15:36 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Jun 2025 10:43:24 +0000 (12:43 +0200)
Since the devm_mmc_alloc_host() helper is already in use,
sdhci_pltfm_free() is no longer needed.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://lore.kernel.org/r/54f34c130c0906700b45c749eb24682651c7ab06.1749127796.git.zhoubinbin@loongson.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-dove.c

index 77034b13fa66ae3594a5f00cdc30d9c79fc6bd45..dbfaee4a5adafa66493699f63cb4b2a33ca3d070 100644 (file)
@@ -79,17 +79,9 @@ static int sdhci_dove_probe(struct platform_device *pdev)
 
        ret = mmc_of_parse(host->mmc);
        if (ret)
-               goto err_sdhci_add;
+               return ret;
 
-       ret = sdhci_add_host(host);
-       if (ret)
-               goto err_sdhci_add;
-
-       return 0;
-
-err_sdhci_add:
-       sdhci_pltfm_free(pdev);
-       return ret;
+       return sdhci_add_host(host);
 }
 
 static const struct of_device_id sdhci_dove_of_match_table[] = {