Commit 450f2757 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/ide/pci/hp2366.c

parent f9bbcb6f
...@@ -1100,7 +1100,7 @@ static void __init init_setup_hpt374 (struct pci_dev *dev, ide_pci_device_t *d) ...@@ -1100,7 +1100,7 @@ static void __init init_setup_hpt374 (struct pci_dev *dev, ide_pci_device_t *d)
if (PCI_FUNC(dev->devfn) & 1) if (PCI_FUNC(dev->devfn) & 1)
return; return;
pci_for_each_dev(findev) { while ((findev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, findev)) != NULL) {
if ((findev->vendor == dev->vendor) && if ((findev->vendor == dev->vendor) &&
(findev->device == dev->device) && (findev->device == dev->device) &&
((findev->devfn - dev->devfn) == 1) && ((findev->devfn - dev->devfn) == 1) &&
...@@ -1150,7 +1150,7 @@ static void __init init_setup_hpt366 (struct pci_dev *dev, ide_pci_device_t *d) ...@@ -1150,7 +1150,7 @@ static void __init init_setup_hpt366 (struct pci_dev *dev, ide_pci_device_t *d)
d->channels = 1; d->channels = 1;
pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin1); 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) && if ((findev->vendor == dev->vendor) &&
(findev->device == dev->device) && (findev->device == dev->device) &&
((findev->devfn - dev->devfn) == 1) && ((findev->devfn - dev->devfn) == 1) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment