ChangeSet 1.1300, 2003/06/04 17:42:47-07:00, greg@kroah.com [PATCH] PCI: remove usage of pci_for_each_dev() in arch/x86_64/pci/x86-64.c arch/x86_64/pci/x86-64.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -Nru a/arch/x86_64/pci/x86-64.c b/arch/x86_64/pci/x86-64.c --- a/arch/x86_64/pci/x86-64.c Wed Jun 4 18:06:31 2003 +++ b/arch/x86_64/pci/x86-64.c Wed Jun 4 18:06:31 2003 @@ -121,12 +121,12 @@ static void __init pcibios_allocate_resources(int pass) { - struct pci_dev *dev; + struct pci_dev *dev = NULL; int idx, disabled; u16 command; struct resource *r, *pr; - pci_for_each_dev(dev) { + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { pci_read_config_word(dev, PCI_COMMAND, &command); for(idx = 0; idx < 6; idx++) { r = &dev->resource[idx]; @@ -166,11 +166,11 @@ static void __init pcibios_assign_resources(void) { - struct pci_dev *dev; + struct pci_dev *dev = NULL; int idx; struct resource *r; - pci_for_each_dev(dev) { + while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { int class = dev->class >> 8; /* Don't touch classless devices and host bridges */