aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorYang Xiwen <forbidden405@outlook.com>2024-02-29 09:36:19 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2024-03-05 12:57:45 +0100
commit88803989ff6d73155969df94cc84f1ecd28c4d9c (patch)
tree31a44958bbb62ca09b72088a4e3ea0d8cf9e76d4 /drivers/mmc/host
parentmmc: wmt-sdmmc: remove an incorrect release_mem_region() call in the .remove function (diff)
downloadwireguard-linux-88803989ff6d73155969df94cc84f1ecd28c4d9c.tar.xz
wireguard-linux-88803989ff6d73155969df94cc84f1ecd28c4d9c.zip
mmc: core: Use a struct device* as in-param to mmc_of_parse_clk_phase()
Parsing dt usually happens very early, sometimes even before the struct mmc_host has been allocated (e.g. dw_mci_probe() and dw_mci_parse_dt() in dw_mmc.c). Looking at the source of mmc_of_parse_clk_phase(), it's actually not needed to have an initialized mmc_host, let's therefore pass a struct device* to it instead. Also update the only current user, sdhci-of-aspeed. Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au> Signed-off-by: Yang Xiwen <forbidden405@outlook.com> Link: https://lore.kernel.org/r/20240229-b4-mmc-hi3798mv200-v7-1-10c03f316285@outlook.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/sdhci-of-aspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c
index 42d54532cabe..430c1f90037b 100644
--- a/drivers/mmc/host/sdhci-of-aspeed.c
+++ b/drivers/mmc/host/sdhci-of-aspeed.c
@@ -435,7 +435,7 @@ static int aspeed_sdhci_probe(struct platform_device *pdev)
goto err_sdhci_add;
if (dev->phase_desc)
- mmc_of_parse_clk_phase(host->mmc, &dev->phase_map);
+ mmc_of_parse_clk_phase(&pdev->dev, &dev->phase_map);
ret = sdhci_add_host(host);
if (ret)