From: Eugen Hristev Date: Thu, 27 Aug 2020 09:25:57 +0000 (+0300) Subject: mmc: atmel-sdhci: use mmc_of_parse to get the DT properties X-Git-Tag: v2021.10~497^2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3710b464e43abe27ed9ab40c39f98a309a7db055;p=platform%2Fkernel%2Fu-boot.git mmc: atmel-sdhci: use mmc_of_parse to get the DT properties Call mmc_of_parse at probe time to fetch all the host properties from the DT. Signed-off-by: Eugen Hristev Reviewed-by: Peng Fan --- diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index c67b065..f56ae63 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -89,6 +89,10 @@ static int atmel_sdhci_probe(struct udevice *dev) if (ret) return ret; + ret = mmc_of_parse(dev, &plat->cfg); + if (ret) + return ret; + host->max_clk = max_clk; host->mmc = &plat->mmc; host->mmc->dev = dev;