spi: mxc: Fix compilation problem of DM_SPI class driver
drivers/spi/mxc_spi.c:507: undefined reference to `dev_get_addr' linux-ld.bfd: BFD (GNU Binutils) 2.29.1 assertion fail elf32-arm.c:9509 Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
This commit is contained in:
parent
240cd7566e
commit
618e8e20c2
|
|
@ -504,7 +504,7 @@ static int mxc_spi_probe(struct udevice *bus)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
plat->base = dev_get_addr(bus);
|
plat->base = devfdt_get_addr(bus);
|
||||||
if (plat->base == FDT_ADDR_T_NONE)
|
if (plat->base == FDT_ADDR_T_NONE)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue