diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-17 14:18:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-17 14:18:40 -0500 |
commit | 8c34482c17d8fd07966328c7b1cfc35ee290bd1c (patch) | |
tree | 324f7535ae561dcc430764fd2c7531ff67d9780b /arch | |
parent | 1a47f7a84ef386c1f7f55f669598bd9894ceb73a (diff) | |
parent | d95defaca7994ffff1ceb52f3011eb644dfe3274 (diff) |
Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
* 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6:
spi/spi_sh_msiof: fix a wrong free_irq() parameter
dt/flattree: Return virtual address from early_init_dt_alloc_memory_arch()
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/kernel/prom.c | 4 | ||||
-rw-r--r-- | arch/mips/kernel/prom.c | 6 | ||||
-rw-r--r-- | arch/powerpc/kernel/prom.c | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index c881393f07fd..bceaa5543e39 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -47,9 +47,9 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) | |||
47 | memblock_add(base, size); | 47 | memblock_add(base, size); |
48 | } | 48 | } |
49 | 49 | ||
50 | u64 __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | 50 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) |
51 | { | 51 | { |
52 | return memblock_alloc(size, align); | 52 | return __va(memblock_alloc(size, align)); |
53 | } | 53 | } |
54 | 54 | ||
55 | #ifdef CONFIG_EARLY_PRINTK | 55 | #ifdef CONFIG_EARLY_PRINTK |
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 9dbe58368953..a19811e98a41 100644 --- a/arch/mips/kernel/prom.c +++ b/arch/mips/kernel/prom.c | |||
@@ -45,11 +45,9 @@ void __init free_mem_mach(unsigned long addr, unsigned long size) | |||
45 | return free_bootmem(addr, size); | 45 | return free_bootmem(addr, size); |
46 | } | 46 | } |
47 | 47 | ||
48 | u64 __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | 48 | void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) |
49 | { | 49 | { |
50 | return virt_to_phys( | 50 | return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)); |
51 | __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)) | ||
52 | ); | ||
53 | } | 51 | } |
54 | 52 | ||
55 | #ifdef CONFIG_BLK_DEV_INITRD | 53 | #ifdef CONFIG_BLK_DEV_INITRD |
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 |