Skip to content

Commit ef1c3a7

Browse files
ahunter6Ulf Hansson
authored andcommitted
mmc: sdhci-of-arasan: 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: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230811130351.7038-9-adrian.hunter@intel.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 3f37713 commit ef1c3a7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/mmc/host/sdhci-of-arasan.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,6 +2022,7 @@ static void sdhci_arasan_remove(struct platform_device *pdev)
20222022
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
20232023
struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host);
20242024
struct clk *clk_ahb = sdhci_arasan->clk_ahb;
2025+
struct clk *clk_xin = pltfm_host->clk;
20252026

20262027
if (!IS_ERR(sdhci_arasan->phy)) {
20272028
if (sdhci_arasan->is_phy_on)
@@ -2031,8 +2032,9 @@ static void sdhci_arasan_remove(struct platform_device *pdev)
20312032

20322033
sdhci_arasan_unregister_sdclk(&pdev->dev);
20332034

2034-
sdhci_pltfm_unregister(pdev);
2035+
sdhci_pltfm_remove(pdev);
20352036

2037+
clk_disable_unprepare(clk_xin);
20362038
clk_disable_unprepare(clk_ahb);
20372039
}
20382040

0 commit comments

Comments
 (0)