]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/spi/fsl_dspi.c
efi_loader: split README.efi into two separate documents
[people/ms/u-boot.git] / drivers / spi / fsl_dspi.c
index e09985ef2bff3eb51e14cb45bc27b9095923f3f2..42086197d9891b15e21b10eacc3efb988ffccc4f 100644 (file)
@@ -9,6 +9,8 @@
  *
  * SPDX-License-Identifier:    GPL-2.0+
  */
+
+#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <common.h>
@@ -654,7 +656,7 @@ static int fsl_dspi_ofdata_to_platdata(struct udevice *bus)
        plat->num_chipselect =
                fdtdec_get_int(blob, node, "num-cs", FSL_DSPI_MAX_CHIPSELECT);
 
-       addr = dev_get_addr(bus);
+       addr = devfdt_get_addr(bus);
        if (addr == FDT_ADDR_T_NONE) {
                debug("DSPI: Can't get base address or size\n");
                return -ENOMEM;