]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/irqinit_64.c
irq: replace loop with nr_irqs with for_each_irq_desc
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / irqinit_64.c
index 0744b49b4d120445510929c97c63355807f42f3e..cd9f42d028d92c8b05fdceeb889ae9df9000793e 100644 (file)
@@ -142,25 +142,18 @@ void __init init_ISA_irqs(void)
        init_bsp_APIC();
        init_8259A(0);
 
-       for (i = 0; i < nr_irqs; i++) {
+       for (i = 0; i < 16; i++) {
                struct irq_desc *desc = irq_to_desc(i);
 
                desc->status = IRQ_DISABLED;
                desc->action = NULL;
                desc->depth = 1;
 
-               if (i < 16) {
-                       /*
-                        * 16 old-style INTA-cycle interrupts:
-                        */
-                       set_irq_chip_and_handler_name(i, &i8259A_chip,
+               /*
+                * 16 old-style INTA-cycle interrupts:
+                */
+               set_irq_chip_and_handler_name(i, &i8259A_chip,
                                                      handle_level_irq, "XT");
-               } else {
-                       /*
-                        * 'high' PCI IRQs filled in on demand
-                        */
-                       desc->chip = &no_irq_chip;
-               }
        }
 }