]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci_f_sdh30: Drop the use of sdhci_pltfm_free()
authorBinbin Zhou <zhoubinbin@loongson.cn>
Sat, 7 Jun 2025 07:53:18 +0000 (15:53 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Jun 2025 10:43:26 +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/c216c46cb5aebe8e4598215428ace4440974c188.1749127796.git.zhoubinbin@loongson.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_f_sdh30.c

index ee66e4f3683d2770b56991b81c8a47f4f54403ae..e9b934e159adbb5d729f6d3bcb4fa1424fd6331c 100644 (file)
@@ -133,20 +133,18 @@ static int sdhci_f_sdh30_probe(struct platform_device *pdev)
 
        ret = mmc_of_parse(host->mmc);
        if (ret)
-               goto err;
+               return ret;
 
        if (dev_of_node(dev)) {
                sdhci_get_of_property(pdev);
 
                priv->clk_iface = devm_clk_get(&pdev->dev, "iface");
-               if (IS_ERR(priv->clk_iface)) {
-                       ret = PTR_ERR(priv->clk_iface);
-                       goto err;
-               }
+               if (IS_ERR(priv->clk_iface))
+                       return PTR_ERR(priv->clk_iface);
 
                ret = clk_prepare_enable(priv->clk_iface);
                if (ret)
-                       goto err;
+                       return ret;
 
                priv->clk = devm_clk_get(&pdev->dev, "core");
                if (IS_ERR(priv->clk)) {
@@ -200,9 +198,6 @@ err_rst:
        clk_disable_unprepare(priv->clk);
 err_clk:
        clk_disable_unprepare(priv->clk_iface);
-err:
-       sdhci_pltfm_free(pdev);
-
        return ret;
 }