Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adrian Hunter and committed by
Ulf Hansson
ef1c3a7e 3f377134

+3 -1
+3 -1
drivers/mmc/host/sdhci-of-arasan.c
··· 2022 2022 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 2023 2023 struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host); 2024 2024 struct clk *clk_ahb = sdhci_arasan->clk_ahb; 2025 + struct clk *clk_xin = pltfm_host->clk; 2025 2026 2026 2027 if (!IS_ERR(sdhci_arasan->phy)) { 2027 2028 if (sdhci_arasan->is_phy_on) ··· 2032 2031 2033 2032 sdhci_arasan_unregister_sdclk(&pdev->dev); 2034 2033 2035 - sdhci_pltfm_unregister(pdev); 2034 + sdhci_pltfm_remove(pdev); 2036 2035 2036 + clk_disable_unprepare(clk_xin); 2037 2037 clk_disable_unprepare(clk_ahb); 2038 2038 } 2039 2039