diff options
Diffstat (limited to 'arch/powerpc/platforms/52xx')
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pic.c b/arch/powerpc/platforms/52xx/mpc52xx_pic.c index bb611819b832..1a9a49570579 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pic.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pic.c | |||
@@ -486,7 +486,7 @@ void __init mpc52xx_init_irq(void) | |||
486 | unsigned int mpc52xx_get_irq(void) | 486 | unsigned int mpc52xx_get_irq(void) |
487 | { | 487 | { |
488 | u32 status; | 488 | u32 status; |
489 | int irq = NO_IRQ_IGNORE; | 489 | int irq; |
490 | 490 | ||
491 | status = in_be32(&intr->enc_status); | 491 | status = in_be32(&intr->enc_status); |
492 | if (status & 0x00000400) { /* critical */ | 492 | if (status & 0x00000400) { /* critical */ |
@@ -509,6 +509,8 @@ unsigned int mpc52xx_get_irq(void) | |||
509 | } else { | 509 | } else { |
510 | irq |= (MPC52xx_IRQ_L1_PERP << MPC52xx_IRQ_L1_OFFSET); | 510 | irq |= (MPC52xx_IRQ_L1_PERP << MPC52xx_IRQ_L1_OFFSET); |
511 | } | 511 | } |
512 | } else { | ||
513 | return NO_IRQ; | ||
512 | } | 514 | } |
513 | 515 | ||
514 | return irq_linear_revmap(mpc52xx_irqhost, irq); | 516 | return irq_linear_revmap(mpc52xx_irqhost, irq); |