diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2018-06-20 22:51:17 +0200 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-06-25 14:18:41 +0530 |
commit | 618e8e20c23a367bea3484b68694374bc86cdb03 (patch) | |
tree | 8da518cc42fa866591fa82794ca7bb82c4320df9 /drivers | |
parent | 240cd7566e7b98ef5f88b8d2f36c54e8d83f576e (diff) | |
download | u-boot-618e8e20c23a367bea3484b68694374bc86cdb03.tar.gz u-boot-618e8e20c23a367bea3484b68694374bc86cdb03.tar.bz2 u-boot-618e8e20c23a367bea3484b68694374bc86cdb03.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/mxc_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |