diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/pmu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/pmu.c b/arch/powerpc/platforms/cell/pmu.c index 99c612025e8f..d04ae1671e6c 100644 --- a/arch/powerpc/platforms/cell/pmu.c +++ b/arch/powerpc/platforms/cell/pmu.c | |||
@@ -382,11 +382,14 @@ static irqreturn_t cbe_pm_irq(int irq, void *dev_id) | |||
382 | return IRQ_HANDLED; | 382 | return IRQ_HANDLED; |
383 | } | 383 | } |
384 | 384 | ||
385 | int __init cbe_init_pm_irq(void) | 385 | static int __init cbe_init_pm_irq(void) |
386 | { | 386 | { |
387 | unsigned int irq; | 387 | unsigned int irq; |
388 | int rc, node; | 388 | int rc, node; |
389 | 389 | ||
390 | if (!machine_is(cell)) | ||
391 | return 0; | ||
392 | |||
390 | for_each_node(node) { | 393 | for_each_node(node) { |
391 | irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI | | 394 | irq = irq_create_mapping(NULL, IIC_IRQ_IOEX_PMI | |
392 | (node << IIC_IRQ_NODE_SHIFT)); | 395 | (node << IIC_IRQ_NODE_SHIFT)); |