x86, ioapic: Consolidate mp_ioapics[] into 'struct ioapic'
[pandora-kernel.git] / arch / x86 / kernel / devicetree.c
index e90f084..f06494e 100644 (file)
@@ -407,7 +407,7 @@ static void __init ioapic_add_ofnode(struct device_node *np)
        }
 
        for (i = 0; i < nr_ioapics; i++) {
-               if (r.start == mp_ioapics[i].apicaddr) {
+               if (r.start == mpc_ioapic_addr(i)) {
                        struct irq_domain *id;
 
                        id = kzalloc(sizeof(*id), GFP_KERNEL);