Skip to contentSkip to conversation

dm: core: fix devfdt_remap_addr_index()

PATCH New Cédric Le Goater 3 participants 3 messages Aug 14, 2018 – Sep 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: core: fix devfdt_remap_addr_index()

commit 30a90f56c3a2 ("dm: core: add functions to get memory-mapped I/O addresses") introduced a devfdt_remap_addr_index() routine but it does not make use of the index parameter.

---
 drivers/core/fdtaddr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/core/fdtaddr.c +1 -1
index f8cdbd6688de..bfd9580050ca 100644
@@ -138,7 +138,7 @@ void *devfdt_get_addr_ptr(struct udevice *dev)
 
 void *devfdt_remap_addr_index(struct udevice *dev, int index)
 {
-	fdt_addr_t addr = devfdt_get_addr(dev);
+	fdt_addr_t addr = devfdt_get_addr_index(dev, index);
 
 	if (addr == FDT_ADDR_T_NONE)
 		return NULL;
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 dm: core: fix devfdt_remap_addr_index()

Quoted 9 lines · Cédric Le Goater

commit 30a90f56c3a2 ("dm: core: add functions to get memory-mapped I/O addresses") introduced a devfdt_remap_addr_index() routine but it does not make use of the index parameter.

---
 drivers/core/fdtaddr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 9 lines
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180815/3e869776/attachment.sig>
#2 lore raw

PATCH 1/1 dm: core: fix devfdt_remap_addr_index()

Quoted 7 lines · Daniel Schwierzeck
Quoted 4 lines · Cédric Le Goater

commit 30a90f56c3a2 ("dm: core: add functions to get memory-mapped I/O addresses") introduced a devfdt_remap_addr_index() routine but it does not make use of the index parameter.

Quoted 7 lines
Quoted 5 lines
---
 drivers/core/fdtaddr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, and now in mainline, thanks!