ChangeSet 1.1289, 2003/06/04 17:40:52-07:00, greg@kroah.com [PATCH] PCI: remove usage of pci_for_each_dev() in arch/ppc/platforms/gemini_pci.c arch/ppc/platforms/gemini_pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/arch/ppc/platforms/gemini_pci.c b/arch/ppc/platforms/gemini_pci.c --- a/arch/ppc/platforms/gemini_pci.c Wed Jun 4 18:07:23 2003 +++ b/arch/ppc/platforms/gemini_pci.c Wed Jun 4 18:07:23 2003 @@ -13,9 +13,9 @@ void __init gemini_pcibios_fixup(void) { int i; - 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) { for(i = 0; i < 6; i++) { if (dev->resource[i].flags & IORESOURCE_IO) { dev->resource[i].start |= (0xfe << 24);