]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/socfpga_dw_mmc.c
x86: timer: tsc: Allow specifying clock rate from device tree again
[u-boot] / drivers / mmc / socfpga_dw_mmc.c
index d0c3c5155a01628bc6c3b363551d88c480bbb246..d0a0362d7ea6213bcc209d8b53637d1e9ae271c2 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2013 Altera Corporation <www.altera.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -11,7 +10,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 +77,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;
@@ -124,7 +123,7 @@ static int socfpga_dwmmc_probe(struct udevice *dev)
        upriv->mmc = host->mmc;
        host->mmc->dev = dev;
 
-       return 0;
+       return dwmci_probe(dev);
 }
 
 static int socfpga_dwmmc_bind(struct udevice *dev)