This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / ppc / platforms / chrp_pci.c
index 9575938..e4ace97 100644 (file)
@@ -158,7 +158,7 @@ chrp_pcibios_fixup(void)
        struct device_node *np;
 
        /* PCI interrupts are controlled by the OpenPIC */
-       for_each_pci_dev(dev) {
+       while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
                np = pci_device_to_OF_node(dev);
                if ((np != 0) && (np->n_intrs > 0) && (np->intrs[0].line != 0))
                        dev->irq = np->intrs[0].line;