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

Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://lore.kernel.org/r/5fdb2403bf553ad43e2336d072007dd7ea2b4143.1749127796.git.zhoubinbin@loongson.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-st.c

index 4973e08a98f87380325566a6b18878dd45e1dc30..9157342ff7a4bbb38c3075fda6e88dfe6a798556 100644 (file)
@@ -380,13 +380,13 @@ static int sdhci_st_probe(struct platform_device *pdev)
        ret = mmc_of_parse(host->mmc);
        if (ret) {
                dev_err(&pdev->dev, "Failed mmc_of_parse\n");
-               goto err_of;
+               goto err_pltfm_init;
        }
 
        ret = clk_prepare_enable(clk);
        if (ret) {
                dev_err(&pdev->dev, "Failed to prepare clock\n");
-               goto err_of;
+               goto err_pltfm_init;
        }
 
        ret = clk_prepare_enable(icnclk);
@@ -423,8 +423,6 @@ err_out:
        clk_disable_unprepare(icnclk);
 err_icnclk:
        clk_disable_unprepare(clk);
-err_of:
-       sdhci_pltfm_free(pdev);
 err_pltfm_init:
        reset_control_assert(rstc);