diff options
Diffstat (limited to 'arch/powerpc/platforms/ps3/spu.c')
-rw-r--r-- | arch/powerpc/platforms/ps3/spu.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c index a397e4e17c13..651437cb2c18 100644 --- a/arch/powerpc/platforms/ps3/spu.c +++ b/arch/powerpc/platforms/ps3/spu.c | |||
@@ -184,7 +184,7 @@ static int __init setup_areas(struct spu *spu) | |||
184 | 184 | ||
185 | spu_pdata(spu)->shadow = __ioremap( | 185 | spu_pdata(spu)->shadow = __ioremap( |
186 | spu_pdata(spu)->shadow_addr, sizeof(struct spe_shadow), | 186 | spu_pdata(spu)->shadow_addr, sizeof(struct spe_shadow), |
187 | PAGE_READONLY | _PAGE_NO_CACHE | _PAGE_GUARDED); | 187 | pgprot_val(PAGE_READONLY) | _PAGE_NO_CACHE | _PAGE_GUARDED); |
188 | if (!spu_pdata(spu)->shadow) { | 188 | if (!spu_pdata(spu)->shadow) { |
189 | pr_debug("%s:%d: ioremap shadow failed\n", __func__, __LINE__); | 189 | pr_debug("%s:%d: ioremap shadow failed\n", __func__, __LINE__); |
190 | goto fail_ioremap; | 190 | goto fail_ioremap; |
@@ -230,19 +230,19 @@ static int __init setup_interrupts(struct spu *spu) | |||
230 | { | 230 | { |
231 | int result; | 231 | int result; |
232 | 232 | ||
233 | result = ps3_alloc_spe_irq(PS3_BINDING_CPU_ANY, spu_pdata(spu)->spe_id, | 233 | result = ps3_spe_irq_setup(PS3_BINDING_CPU_ANY, spu_pdata(spu)->spe_id, |
234 | 0, &spu->irqs[0]); | 234 | 0, &spu->irqs[0]); |
235 | 235 | ||
236 | if (result) | 236 | if (result) |
237 | goto fail_alloc_0; | 237 | goto fail_alloc_0; |
238 | 238 | ||
239 | result = ps3_alloc_spe_irq(PS3_BINDING_CPU_ANY, spu_pdata(spu)->spe_id, | 239 | result = ps3_spe_irq_setup(PS3_BINDING_CPU_ANY, spu_pdata(spu)->spe_id, |
240 | 1, &spu->irqs[1]); | 240 | 1, &spu->irqs[1]); |
241 | 241 | ||
242 | if (result) | 242 | if (result) |
243 | goto fail_alloc_1; | 243 | goto fail_alloc_1; |
244 | 244 | ||
245 | result = ps3_alloc_spe_irq(PS3_BINDING_CPU_ANY, spu_pdata(spu)->spe_id, | 245 | result = ps3_spe_irq_setup(PS3_BINDING_CPU_ANY, spu_pdata(spu)->spe_id, |
246 | 2, &spu->irqs[2]); | 246 | 2, &spu->irqs[2]); |
247 | 247 | ||
248 | if (result) | 248 | if (result) |
@@ -251,9 +251,9 @@ static int __init setup_interrupts(struct spu *spu) | |||
251 | return result; | 251 | return result; |
252 | 252 | ||
253 | fail_alloc_2: | 253 | fail_alloc_2: |
254 | ps3_free_spe_irq(spu->irqs[1]); | 254 | ps3_spe_irq_destroy(spu->irqs[1]); |
255 | fail_alloc_1: | 255 | fail_alloc_1: |
256 | ps3_free_spe_irq(spu->irqs[0]); | 256 | ps3_spe_irq_destroy(spu->irqs[0]); |
257 | fail_alloc_0: | 257 | fail_alloc_0: |
258 | spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = NO_IRQ; | 258 | spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = NO_IRQ; |
259 | return result; | 259 | return result; |
@@ -301,9 +301,9 @@ static int ps3_destroy_spu(struct spu *spu) | |||
301 | result = lv1_disable_logical_spe(spu_pdata(spu)->spe_id, 0); | 301 | result = lv1_disable_logical_spe(spu_pdata(spu)->spe_id, 0); |
302 | BUG_ON(result); | 302 | BUG_ON(result); |
303 | 303 | ||
304 | ps3_free_spe_irq(spu->irqs[2]); | 304 | ps3_spe_irq_destroy(spu->irqs[2]); |
305 | ps3_free_spe_irq(spu->irqs[1]); | 305 | ps3_spe_irq_destroy(spu->irqs[1]); |
306 | ps3_free_spe_irq(spu->irqs[0]); | 306 | ps3_spe_irq_destroy(spu->irqs[0]); |
307 | 307 | ||
308 | spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = NO_IRQ; | 308 | spu->irqs[0] = spu->irqs[1] = spu->irqs[2] = NO_IRQ; |
309 | 309 | ||