Commit 89c81f58 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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

parent 450f2757
...@@ -579,7 +579,7 @@ static void __init init_setup_pdcnew (struct pci_dev *dev, ide_pci_device_t *d) ...@@ -579,7 +579,7 @@ static void __init init_setup_pdcnew (struct pci_dev *dev, ide_pci_device_t *d)
static void __init init_setup_pdc20270 (struct pci_dev *dev, ide_pci_device_t *d) static void __init init_setup_pdc20270 (struct pci_dev *dev, ide_pci_device_t *d)
{ {
struct pci_dev *findev; struct pci_dev *findev = NULL;
if ((dev->bus->self && if ((dev->bus->self &&
dev->bus->self->vendor == PCI_VENDOR_ID_DEC) && dev->bus->self->vendor == PCI_VENDOR_ID_DEC) &&
...@@ -588,7 +588,7 @@ static void __init init_setup_pdc20270 (struct pci_dev *dev, ide_pci_device_t *d ...@@ -588,7 +588,7 @@ static void __init init_setup_pdc20270 (struct pci_dev *dev, ide_pci_device_t *d
return; return;
} }
d->extra = 0; d->extra = 0;
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) &&
(PCI_SLOT(findev->devfn) & 2)) { (PCI_SLOT(findev->devfn) & 2)) {
......
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