]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/i386/kernel/io_apic.c
[PATCH] x86_64: Memorize location of i8259 for reboots.
[linux-2.6-omap-h63xx.git] / arch / i386 / kernel / io_apic.c
index 7554f8fd874ac2dddefaed39edb0857bf6c1b589..f2dd218d88cb64b9fe4bfa083134e7c63a9684b2 100644 (file)
@@ -1649,7 +1649,7 @@ static void __init enable_IO_APIC(void)
        for(apic = 0; apic < nr_ioapics; apic++) {
                int pin;
                /* See if any of the pins is in ExtINT mode */
-               for(pin = 0; pin < nr_ioapic_registers[i]; pin++) {
+               for (pin = 0; pin < nr_ioapic_registers[apic]; pin++) {
                        struct IO_APIC_route_entry entry;
                        spin_lock_irqsave(&ioapic_lock, flags);
                        *(((int *)&entry) + 0) = io_apic_read(apic, 0x10 + 2 * pin);