]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/zynq_sdhci.c
dm: core: Replace of_offset with accessor (part 2)
[u-boot] / drivers / mmc / zynq_sdhci.c
index 28cedf0c468b3027c4ac6394f2fcb76f0f5159f5..0fddb420dc0f55745d374ca8ae39d9c7b64907ee 100644 (file)
@@ -81,9 +81,9 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
        struct sdhci_host *host = dev_get_priv(dev);
 
        host->name = dev->name;
-       host->ioaddr = (void *)dev_get_addr(dev);
+       host->ioaddr = (void *)devfdt_get_addr(dev);
 
-       plat->f_max = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
+       plat->f_max = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
                                "max-frequency", CONFIG_ZYNQ_SDHCI_MAX_FREQ);
 
        return 0;