mmc: atmel-sdhci: use mmc_of_parse to get the DT properties
authorEugen Hristev <eugen.hristev@microchip.com>
Thu, 27 Aug 2020 09:25:57 +0000 (12:25 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 25 Sep 2020 07:39:22 +0000 (10:39 +0300)
Call mmc_of_parse at probe time to fetch all the host properties
from the DT.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/atmel_sdhci.c

index c67b065..f56ae63 100644 (file)
@@ -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;