Skip to content

Commit b1284d7

Browse files
ahunter6storulf
authored andcommitted
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: 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]>
1 parent c21f1b0 commit b1284d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/mmc/host/sdhci-st.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,12 @@ static void sdhci_st_remove(struct platform_device *pdev)
437437
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
438438
struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host);
439439
struct reset_control *rstc = pdata->rstc;
440+
struct clk *clk = pltfm_host->clk;
440441

441-
sdhci_pltfm_unregister(pdev);
442+
sdhci_pltfm_remove(pdev);
442443

443444
clk_disable_unprepare(pdata->icnclk);
445+
clk_disable_unprepare(clk);
444446

445447
reset_control_assert(rstc);
446448
}

0 commit comments

Comments
 (0)