MIPS: lantiq: dont register irq_chip for the irq cascade
authorJohn Crispin <blogic@openwrt.org>
Thu, 16 Aug 2012 08:09:21 +0000 (08:09 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 22 Aug 2012 22:08:17 +0000 (00:08 +0200)
We dont want to register the irq_chip for the MIPS IRQ cascade.

Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4230/

arch/mips/lantiq/irq.c

index 0cec43d..87f15d6 100644 (file)
@@ -297,6 +297,9 @@ static int icu_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)
        struct irq_chip *chip = &ltq_irq_type;
        int i;
 
+       if (hw < MIPS_CPU_IRQ_CASCADE)
+               return 0;
+
        for (i = 0; i < exin_avail; i++)
                if (hw == ltq_eiu_irq[i])
                        chip = &ltq_eiu_type;