dm: core: Update lists_bind_fdt() to use ofnode
[oweals/u-boot.git] / drivers / mmc / gen_atmel_mci.c
index c25d9ed96ed1c972ff65c3aa2e66a1a95ef94e6d..e9f061e55dc3b7ef7123a5b60dbd5e53b56988af 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <clk.h>
+#include <dm.h>
 #include <mmc.h>
 #include <part.h>
 #include <malloc.h>
@@ -19,7 +20,6 @@
 #include <asm/byteorder.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/hardware.h>
-#include <dm/device.h>
 #include "atmel_mci.h"
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -576,7 +576,7 @@ static int atmel_mci_probe(struct udevice *dev)
        if (ret)
                return ret;
 
-       priv->mci = (struct atmel_mci *)dev_get_addr_ptr(dev);
+       priv->mci = (struct atmel_mci *)devfdt_get_addr_ptr(dev);
 
        atmel_mci_setup_cfg(priv);