diff --git a/arch/m68k/atari/hades-pci.c b/arch/m68k/atari/hades-pci.c --- a/arch/m68k/atari/hades-pci.c +++ b/arch/m68k/atari/hades-pci.c @@ -311,8 +311,7 @@ static void __init hades_fixup(int pci_m * Go through all devices, fixing up irqs as we see fit: */ - while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) - { + for_each_pci_dev(dev) if (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) { slot = PCI_SLOT(dev->devfn); /* Determine slot number. */ @@ -320,7 +319,6 @@ static void __init hades_fixup(int pci_m if (pci_modify) pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq); } - } } /*