Commit b1284d7c authored by Adrian Hunter's avatar Adrian Hunter Committed by Ulf Hansson

mmc: sdhci-st: Use sdhci_pltfm_remove()

Use sdhci_pltfm_remove() instead of sdhci_pltfm_unregister() because
sdhci_pltfm_unregister() is going to be removed.
Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230811130351.7038-15-adrian.hunter@intel.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent c21f1b0d
...@@ -437,10 +437,12 @@ static void sdhci_st_remove(struct platform_device *pdev) ...@@ -437,10 +437,12 @@ static void sdhci_st_remove(struct platform_device *pdev)
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host);
struct reset_control *rstc = pdata->rstc; struct reset_control *rstc = pdata->rstc;
struct clk *clk = pltfm_host->clk;
sdhci_pltfm_unregister(pdev); sdhci_pltfm_remove(pdev);
clk_disable_unprepare(pdata->icnclk); clk_disable_unprepare(pdata->icnclk);
clk_disable_unprepare(clk);
reset_control_assert(rstc); reset_control_assert(rstc);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment