From fe5ab57338377ca0d48830d846ee21d2e9f9c4cc Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman <greg@kroah.com> Date: Wed, 4 Jun 2003 03:39:40 -0700 Subject: [PATCH] [PATCH] PCI: remove usage of pci_for_each_dev() in arch/mips/ddb5xxx/ddb5477/pci.c --- arch/mips/ddb5xxx/ddb5477/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/ddb5xxx/ddb5477/pci.c b/arch/mips/ddb5xxx/ddb5477/pci.c index de146082148b..1f1e05b051c3 100644 --- a/arch/mips/ddb5xxx/ddb5477/pci.c +++ b/arch/mips/ddb5xxx/ddb5477/pci.c @@ -98,10 +98,10 @@ static unsigned char irq_map[MAX_SLOT_NUM] = { extern int vrc5477_irq_to_irq(int irq); void __init pcibios_fixup_irqs(void) { - struct pci_dev *dev; + struct pci_dev *dev = NULL; int slot_num; - pci_for_each_dev(dev) { + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { slot_num = PCI_SLOT(dev->devfn); MIPS_ASSERT(slot_num < MAX_SLOT_NUM); MIPS_ASSERT(irq_map[slot_num] != 0xff); -- 2.30.9