]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/irqinit_64.c
generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[]
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / irqinit_64.c
index 165c5d9b0d1a8276f07689d78c841664cd24afb5..0744b49b4d120445510929c97c63355807f42f3e 100644 (file)
@@ -143,9 +143,11 @@ void __init init_ISA_irqs(void)
        init_8259A(0);
 
        for (i = 0; i < nr_irqs; i++) {
-               irq_desc[i].status = IRQ_DISABLED;
-               irq_desc[i].action = NULL;
-               irq_desc[i].depth = 1;
+               struct irq_desc *desc = irq_to_desc(i);
+
+               desc->status = IRQ_DISABLED;
+               desc->action = NULL;
+               desc->depth = 1;
 
                if (i < 16) {
                        /*
@@ -157,7 +159,7 @@ void __init init_ISA_irqs(void)
                        /*
                         * 'high' PCI IRQs filled in on demand
                         */
-                       irq_desc[i].chip = &no_irq_chip;
+                       desc->chip = &no_irq_chip;
                }
        }
 }