ChangeSet 1.1284, 2003/06/04 17:40:01-07:00, greg@kroah.com [PATCH] PCI: remove usage of pci_for_each_dev() in arch/mips/sni/pci.c arch/mips/sni/pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/arch/mips/sni/pci.c b/arch/mips/sni/pci.c --- a/arch/mips/sni/pci.c Wed Jun 4 18:07:47 2003 +++ b/arch/mips/sni/pci.c Wed Jun 4 18:07:47 2003 @@ -31,9 +31,9 @@ /* To do: Bring this uptodate ... */ static void pcimt_pcibios_fixup (void) { - struct pci_dev *dev; + struct pci_dev *dev = NULL; - pci_for_each_dev(dev) { + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { /* * TODO: Take care of RM300 revision D boards for where the * network slot became an ordinary PCI slot.