diff options
Diffstat (limited to 'arch/powerpc/platforms/ps3/setup.c')
-rw-r--r-- | arch/powerpc/platforms/ps3/setup.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index 3f509f86432c..799c8580ab09 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -125,12 +125,7 @@ static void __init prealloc(struct ps3_prealloc *p) | |||
125 | if (!p->size) | 125 | if (!p->size) |
126 | return; | 126 | return; |
127 | 127 | ||
128 | p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS)); | 128 | p->address = memblock_virt_alloc(p->size, p->align); |
129 | if (!p->address) { | ||
130 | printk(KERN_ERR "%s: Cannot allocate %s\n", __func__, | ||
131 | p->name); | ||
132 | return; | ||
133 | } | ||
134 | 129 | ||
135 | printk(KERN_INFO "%s: %lu bytes at %p\n", p->name, p->size, | 130 | printk(KERN_INFO "%s: %lu bytes at %p\n", p->name, p->size, |
136 | p->address); | 131 | p->address); |
@@ -248,6 +243,7 @@ static int __init ps3_probe(void) | |||
248 | ps3_mm_init(); | 243 | ps3_mm_init(); |
249 | ps3_mm_vas_create(&htab_size); | 244 | ps3_mm_vas_create(&htab_size); |
250 | ps3_hpte_init(htab_size); | 245 | ps3_hpte_init(htab_size); |
246 | pm_power_off = ps3_power_off; | ||
251 | 247 | ||
252 | DBG(" <- %s:%d\n", __func__, __LINE__); | 248 | DBG(" <- %s:%d\n", __func__, __LINE__); |
253 | return 1; | 249 | return 1; |
@@ -278,7 +274,6 @@ define_machine(ps3) { | |||
278 | .calibrate_decr = ps3_calibrate_decr, | 274 | .calibrate_decr = ps3_calibrate_decr, |
279 | .progress = ps3_progress, | 275 | .progress = ps3_progress, |
280 | .restart = ps3_restart, | 276 | .restart = ps3_restart, |
281 | .power_off = ps3_power_off, | ||
282 | .halt = ps3_halt, | 277 | .halt = ps3_halt, |
283 | #if defined(CONFIG_KEXEC) | 278 | #if defined(CONFIG_KEXEC) |
284 | .kexec_cpu_down = ps3_kexec_cpu_down, | 279 | .kexec_cpu_down = ps3_kexec_cpu_down, |