]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/socfpga_dw_mmc.c
mmc: matsushita-common: Properly handle pin voltage configuration
[u-boot] / drivers / mmc / socfpga_dw_mmc.c
index d0c3c5155a01628bc6c3b363551d88c480bbb246..9ace505fe4e74c20a1315df78c47baf21ee3b5e4 100644 (file)
@@ -11,7 +11,7 @@
 #include <dwmmc.h>
 #include <errno.h>
 #include <fdtdec.h>
-#include <libfdt.h>
+#include <linux/libfdt.h>
 #include <linux/err.h>
 #include <malloc.h>
 
@@ -78,7 +78,7 @@ static int socfpga_dwmmc_ofdata_to_platdata(struct udevice *dev)
        }
 
        host->name = dev->name;
-       host->ioaddr = (void *)dev_get_addr(dev);
+       host->ioaddr = (void *)devfdt_get_addr(dev);
        host->buswidth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
                                        "bus-width", 4);
        host->clksel = socfpga_dwmci_clksel;