mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
qemu-ppce500: pass 'range_id' around in pci_map_region
In pci_map_region(), pass 'range_id' to fdt_read_range(), otherwise the same address will be mapped again in other calls to pci_map_region() Signed-off-by: Miao Yan <yammiaobest@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
d8a1a304ef
commit
18d3f46995
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ static int pci_map_region(void *fdt, int pci_node, int range_id,
|
|||
ulong map_addr;
|
||||
int r;
|
||||
|
||||
r = fdt_read_range(fdt, pci_node, 0, NULL, &addr, &size);
|
||||
r = fdt_read_range(fdt, pci_node, range_id, NULL, &addr, &size);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
|
|
Loading…
Reference in a new issue