ARM: OMAP1: Change interrupt numbering for sparse IRQ
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-omap1 / irq.c
index 567fba35bd9475eb5f783b167731ea96c7d333c9..f4d346fda9da8c44bc201f328df4293420168fab 100644 (file)
@@ -233,6 +233,7 @@ void __init omap1_init_irq(void)
                irq_base = 0;
        }
        omap_l2_irq = cpu_is_omap7xx() ? irq_base + 1 : irq_base;
+       omap_l2_irq -= NR_IRQS_LEGACY;
 
        domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0,
                                       &irq_domain_simple_ops, NULL);