Skip to content

Commit

Permalink
powerpc/bootwrapper: Use the child-bus #address-cells to decide which…
Browse files Browse the repository at this point in the history
… range entry to use

The correct #address-cells was still used for the actual translation,
so the impact is only a possibility of choosing the wrong range entry
or failing to find any match.  Most common cases were not affected.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Scott Wood authored and Paul Mackerras committed Dec 21, 2008
1 parent e14d774 commit 49e6e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/boot/devtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static int find_range(u32 *reg, u32 *ranges, int nregaddr,
u32 range_addr[MAX_ADDR_CELLS];
u32 range_size[MAX_ADDR_CELLS];

copy_val(range_addr, ranges + i, naddr);
copy_val(range_addr, ranges + i, nregaddr);
copy_val(range_size, ranges + i + nregaddr + naddr, nsize);

if (compare_reg(reg, range_addr, range_size))
Expand Down

0 comments on commit 49e6e3f

Please sign in to comment.