From: Michael Trimarchi Date: Wed, 20 Jun 2018 20:51:17 +0000 (+0200) Subject: spi: mxc: Fix compilation problem of DM_SPI class driver X-Git-Tag: v2018.07-rc3~13^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=618e8e20c23a367bea3484b68694374bc86cdb03;p=u-boot 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 Reviewed-by: Fabio Estevam Reviewed-by: Peng Fan Reviewed-by: Jagan Teki --- diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index b77129cc31..fcb214af20 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -504,7 +504,7 @@ static int mxc_spi_probe(struct udevice *bus) return -EINVAL; } - plat->base = dev_get_addr(bus); + plat->base = devfdt_get_addr(bus); if (plat->base == FDT_ADDR_T_NONE) return -ENODEV;