Skip to content

Commit

Permalink
mmc: sdhci-of-arasan: Use sdhci_pltfm_remove()
Browse files Browse the repository at this point in the history
Use sdhci_pltfm_remove() instead of sdhci_pltfm_unregister() because
sdhci_pltfm_unregister() is going to be removed.

Signed-off-by: Adrian Hunter <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
ahunter6 authored and storulf committed Aug 15, 2023
1 parent 3f37713 commit ef1c3a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/mmc/host/sdhci-of-arasan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2022,6 +2022,7 @@ static void sdhci_arasan_remove(struct platform_device *pdev)
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host);
struct clk *clk_ahb = sdhci_arasan->clk_ahb;
struct clk *clk_xin = pltfm_host->clk;

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

sdhci_arasan_unregister_sdclk(&pdev->dev);

sdhci_pltfm_unregister(pdev);
sdhci_pltfm_remove(pdev);

clk_disable_unprepare(clk_xin);
clk_disable_unprepare(clk_ahb);
}

Expand Down

0 comments on commit ef1c3a7

Please sign in to comment.