[POWERPC] Fix dt_mem_next_cell() to read the full address
authorBecky Bruce <bgill@freescale.com>
Fri, 15 Feb 2008 18:17:14 +0000 (05:17 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 20 Feb 2008 02:33:37 +0000 (13:33 +1100)
commitabe768858a54e96f0b2c0585db397107ed1bd213
treedd3fb2855fb546572f4b4a85da6dc34cccfd43a7
parent66200ea2228da6aaf317d21e67b1157aae7168e7
[POWERPC] Fix dt_mem_next_cell() to read the full address

dt_mem_next_cell() currently does of_read_ulong().  This does not
allow for the case where #size-cells and/or #address-cells = 2 on a
32-bit system, as it will end up reading 32 bits instead of the
expected 64.  Change it to use of_read_number instead and always
return a u64.

Signed-off-by: Becky Bruce <becky.bruce at freescale.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c