ChangeSet 1.1254.4.25, 2003/06/04 12:32:05-07:00, greg@kroah.com [PATCH] PCI: remove usage of pci_for_each_dev() in drivers/ide/pci/hp2366.c drivers/ide/pci/hpt366.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c --- a/drivers/ide/pci/hpt366.c Wed Jun 4 18:10:21 2003 +++ b/drivers/ide/pci/hpt366.c Wed Jun 4 18:10:21 2003 @@ -1100,7 +1100,7 @@ if (PCI_FUNC(dev->devfn) & 1) return; - pci_for_each_dev(findev) { + while ((findev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, findev)) != NULL) { if ((findev->vendor == dev->vendor) && (findev->device == dev->device) && ((findev->devfn - dev->devfn) == 1) && @@ -1150,7 +1150,7 @@ d->channels = 1; pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin1); - pci_for_each_dev(findev) { + while ((findev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, findev)) != NULL) { if ((findev->vendor == dev->vendor) && (findev->device == dev->device) && ((findev->devfn - dev->devfn) == 1) &&