From: Jiri Slaby Date: Mon, 7 Nov 2005 07:39:33 +0000 (-0800) Subject: [PATCH] PCI: arch: pci_find_device remove (frv/mb93090-mb00/pci-irq.c) X-Git-Tag: v2.6.16-rc1~654^2~34 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3c94792f017c8c90d2ca84b0f4cd9c143471d5e3;p=linux-2.6-omap-h63xx.git [PATCH] PCI: arch: pci_find_device remove (frv/mb93090-mb00/pci-irq.c) Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/frv/mb93090-mb00/pci-irq.c b/arch/frv/mb93090-mb00/pci-irq.c index 24622d89b1c..c4a1144c98b 100644 --- a/arch/frv/mb93090-mb00/pci-irq.c +++ b/arch/frv/mb93090-mb00/pci-irq.c @@ -48,9 +48,7 @@ void __init pcibios_fixup_irqs(void) struct pci_dev *dev = NULL; uint8_t line, pin; - while (dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev), - dev != NULL - ) { + for_each_pci_dev(dev) { pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); if (pin) { dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1];