]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci-esdhc-imx: Drop the use of sdhci_pltfm_free()
authorBinbin Zhou <zhoubinbin@loongson.cn>
Sat, 7 Jun 2025 07:36:45 +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.

Cc: Haibo Chen <haibo.chen@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: imx@lists.linux.dev
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/r/9b9014749a9870a9cb3c2818fe9b38c013cb46ca.1749127796.git.zhoubinbin@loongson.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c

index 85258359203f3d83b1dcbe4be7fd4a1a99ee70a0..64c27349d79f2ed9baba8c10fef972d930ef6848 100644 (file)
@@ -1991,7 +1991,6 @@ disable_per_clk:
 free_sdhci:
        if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS)
                cpu_latency_qos_remove_request(&imx_data->pm_qos_req);
-       sdhci_pltfm_free(pdev);
        return err;
 }
 
@@ -2015,8 +2014,6 @@ static void sdhci_esdhc_imx_remove(struct platform_device *pdev)
 
        if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS)
                cpu_latency_qos_remove_request(&imx_data->pm_qos_req);
-
-       sdhci_pltfm_free(pdev);
 }
 
 #ifdef CONFIG_PM_SLEEP