]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/irqinit_32.c
x86: make 32 bit to use sparse_irq
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / irqinit_32.c
index 65c1c9507707a68ad0711bd4d9e9d3578f91db32..ded09ac2642e86a1f7935d48c5dae8a66150ad8c 100644 (file)
@@ -69,6 +69,13 @@ void __init init_ISA_irqs (void)
         * 16 old-style INTA-cycle interrupts:
         */
        for (i = 0; i < 16; i++) {
+               /* first time call this irq_desc */
+               struct irq_desc *desc = irq_to_desc_alloc(i);
+
+               desc->status = IRQ_DISABLED;
+               desc->action = NULL;
+               desc->depth = 1;
+
                set_irq_chip_and_handler_name(i, &i8259A_chip,
                                              handle_level_irq, "XT");
        }