diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-01-13 17:36:09 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-01-16 00:01:58 -0500 |
commit | 672c54466d24994eb9633f993862c89539504a42 (patch) | |
tree | e08f17e5fa260676912eb9b7d2263d47d667fdec /arch/powerpc/kernel | |
parent | 1b59be2a6cdcb5a12e18d8315c07c94a624de48f (diff) |
dt/flattree: Return virtual address from early_init_dt_alloc_memory_arch()
The physical address is never used by the device tree code when
allocating memory for unflattening. Change the architecture's alloc
hook to return the virutal address instead.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 9e3132db718b..7185f0da7dc3 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -519,9 +519,9 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) | |||
519 | memblock_add(base, size); | 519 | memblock_add(base, size); |
520 | } | 520 | } |
521 | 521 | ||
522 | u64 __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | 522 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) |
523 | { | 523 | { |
524 | return memblock_alloc(size, align); | 524 | return __va(memblock_alloc(size, align)); |
525 | } | 525 | } |
526 | 526 | ||
527 | #ifdef CONFIG_BLK_DEV_INITRD | 527 | #ifdef CONFIG_BLK_DEV_INITRD |