mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
dm: core: fix devfdt_remap_addr_index()
commit 30a90f56c3
("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.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
1712ca2192
commit
427ddd8420
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue