diff options
author | Miao Yan <yanmiaobest@gmail.com> | 2015-12-21 01:19:59 -0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-04 12:25:34 -0500 |
commit | 18d3f46995319dfcb7f73c7c6a5e5da6b8e57e69 (patch) | |
tree | 4f95162a9b0b0a658ce1a2b5d161a3a8b3ea24f1 /board | |
parent | d8a1a304ef585795a217ce8e13514eebfb8279ee (diff) |
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/qemu-ppce500/qemu-ppce500.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/qemu-ppce500/qemu-ppce500.c b/board/freescale/qemu-ppce500/qemu-ppce500.c index a0fca0d8808..6cb5692eda6 100644 --- a/board/freescale/qemu-ppce500/qemu-ppce500.c +++ b/board/freescale/qemu-ppce500/qemu-ppce500.c @@ -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; |