diff options
-rw-r--r-- | arch/mips/lantiq/irq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index 0cec43dc3f60..87f15d64afa2 100644 --- a/arch/mips/lantiq/irq.c +++ b/arch/mips/lantiq/irq.c | |||
@@ -297,6 +297,9 @@ static int icu_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw) | |||
297 | struct irq_chip *chip = <q_irq_type; | 297 | struct irq_chip *chip = <q_irq_type; |
298 | int i; | 298 | int i; |
299 | 299 | ||
300 | if (hw < MIPS_CPU_IRQ_CASCADE) | ||
301 | return 0; | ||
302 | |||
300 | for (i = 0; i < exin_avail; i++) | 303 | for (i = 0; i < exin_avail; i++) |
301 | if (hw == ltq_eiu_irq[i]) | 304 | if (hw == ltq_eiu_irq[i]) |
302 | chip = <q_eiu_type; | 305 | chip = <q_eiu_type; |