diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-01-02 14:14:36 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-16 22:57:15 -0500 |
commit | e25c47ffa97ca5e4602593b03ce6d21cff652864 (patch) | |
tree | 1bbd57e332fde97d5c801d881aee57aada56113e /arch/powerpc/platforms/cell/pmu.c | |
parent | d518b71784c6fa4c8eafb334236883f763f8e296 (diff) |
[POWERPC] cell: Use machine_*_initcall() hooks in platform code
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/pmu.c')
-rw-r--r-- | arch/powerpc/platforms/cell/pmu.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/cell/pmu.c b/arch/powerpc/platforms/cell/pmu.c index 99d688e88cbe..69ed0d7f1646 100644 --- a/arch/powerpc/platforms/cell/pmu.c +++ b/arch/powerpc/platforms/cell/pmu.c | |||
@@ -381,9 +381,6 @@ static int __init cbe_init_pm_irq(void) | |||
381 | unsigned int irq; | 381 | unsigned int irq; |
382 | int rc, node; | 382 | int rc, node; |
383 | 383 | ||
384 | if (!machine_is(cell)) | ||
385 | return 0; | ||
386 | |||
387 | for_each_node(node) { | 384 | for_each_node(node) { |
388 | irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI | | 385 | irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI | |
389 | (node << IIC_IRQ_NODE_SHIFT)); | 386 | (node << IIC_IRQ_NODE_SHIFT)); |
@@ -404,7 +401,7 @@ static int __init cbe_init_pm_irq(void) | |||
404 | 401 | ||
405 | return 0; | 402 | return 0; |
406 | } | 403 | } |
407 | arch_initcall(cbe_init_pm_irq); | 404 | machine_arch_initcall(cell, cbe_init_pm_irq); |
408 | 405 | ||
409 | void cbe_sync_irq(int node) | 406 | void cbe_sync_irq(int node) |
410 | { | 407 | { |