diff options
author | Cédric Le Goater | 2018-08-14 12:48:11 +0200 |
---|---|---|
committer | Simon Glass | 2018-09-18 08:12:21 -0600 |
commit | 427ddd84204cc0693e3f80f90f257b3d24b04307 (patch) | |
tree | 7f8bdf7c380f5e4c518b7b488c5e16875c7bb2f0 /drivers/core | |
parent | 1712ca21924bff678f19fd3141f435408d23bdbf (diff) |
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.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/fdtaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index f8cdbd6688d..bfd9580050c 100644 --- a/drivers/core/fdtaddr.c +++ b/drivers/core/fdtaddr.c @@ -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; |