Skip to contentSkip to conversation

spi: mxc: Fix compilation problem of DM_SPI class driver

PATCH New Michael Trimarchi 1 participant 2 messages Jun 17, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

Change-Id I1df196ed847cf06e19d3039bc4461eb8bd928a83
---
 drivers/spi/mxc_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/mxc_spi.c +1 -1
index b77129c..fcb214a 100644
@@ -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;
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 spi: mxc: Fix compilation problem of DM_SPI class driver

Hi

Quoted 4 lines · Michael Trimarchi

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

Change-Id: I1df196ed847cf06e19d3039bc4461eb8bd928a83

I will repost without change id ;)

Quoted 21 lines
---
 drivers/spi/mxc_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/mxc_spi.c +1 -2
index b77129c..fcb214a 100644
@@ -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;
 
--

2.7.4

Signature · 4 lines
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |