vserver 1.9.5.x5
[linux-2.6.git] / arch / sh / drivers / pci / fixups-dreamcast.c
index aa5e24a..cf30e2f 100644 (file)
@@ -47,11 +47,7 @@ static void __init gapspci_fixup_resources(struct pci_dev *dev)
        }
 }
 
-struct pci_fixup pcibios_fixups[] = {
-       { PCI_FIXUP_HEADER, PCI_ANY_ID,
-         PCI_ANY_ID, gapspci_fixup_resources },
-       { 0, }
-};
+DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, gapspci_fixup_resources);
 
 void __init pcibios_fixup_bus(struct pci_bus *bus)
 {
@@ -66,7 +62,7 @@ void __init pcibios_fixup_irqs(void)
 {
        struct pci_dev *dev = 0;
 
-       while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+       for_each_pci_dev(dev) {
                /*
                 * The interrupt routing semantics here are quite trivial.
                 *