[U-Boot] [PATCH 1/3] spi: mxc: Fix compilation problem of DM_SPI class driver
Peng Fan
peng.fan at nxp.com
Sun Jun 24 11:41:27 UTC 2018
> -----Original Message-----
> From: Michael Trimarchi [mailto:michael at amarulasolutions.com]
> Sent: 2018年6月21日 4:51
> To: Jagan Teki <jagan at openedev.com>
> Cc: Stefano Babic <sbabic at denx.de>; Peng Fan <peng.fan at nxp.com>;
> shyam.saini at amarulasolutions.com; u-boot at lists.denx.de
> Subject: [PATCH 1/3] 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 at amarulasolutions.com>
> ---
> drivers/spi/mxc_spi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index b77129c..fcb214a
> 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;
Reviewed-by: Peng Fan <peng.fan at nxp.com>
>
> --
> 2.7.4
More information about the U-Boot
mailing list