diff options
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 40fce1c2f33b..43c78d74ddcb 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -98,7 +98,7 @@ static void __init move_device_tree(void) | |||
98 | DBG("-> move_device_tree\n"); | 98 | DBG("-> move_device_tree\n"); |
99 | 99 | ||
100 | start = __pa(initial_boot_params); | 100 | start = __pa(initial_boot_params); |
101 | size = initial_boot_params->totalsize; | 101 | size = be32_to_cpu(initial_boot_params->totalsize); |
102 | 102 | ||
103 | if ((memory_limit && (start + size) > memory_limit) || | 103 | if ((memory_limit && (start + size) > memory_limit) || |
104 | overlaps_crashkernel(start, size)) { | 104 | overlaps_crashkernel(start, size)) { |