Commit f9bbcb6f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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

parent 24c0d224
...@@ -281,16 +281,15 @@ static unsigned int __init init_chipset_cs5530 (struct pci_dev *dev, const char ...@@ -281,16 +281,15 @@ static unsigned int __init init_chipset_cs5530 (struct pci_dev *dev, const char
} }
#endif /* DISPLAY_CS5530_TIMINGS && CONFIG_PROC_FS */ #endif /* DISPLAY_CS5530_TIMINGS && CONFIG_PROC_FS */
pci_for_each_dev (dev) { dev = NULL;
if (dev->vendor == PCI_VENDOR_ID_CYRIX) { while ((dev = pci_find_device(PCI_VENDOR_ID_CYRIX, PCI_ANY_ID, dev)) != NULL) {
switch (dev->device) { switch (dev->device) {
case PCI_DEVICE_ID_CYRIX_PCI_MASTER: case PCI_DEVICE_ID_CYRIX_PCI_MASTER:
master_0 = dev; master_0 = dev;
break; break;
case PCI_DEVICE_ID_CYRIX_5530_LEGACY: case PCI_DEVICE_ID_CYRIX_5530_LEGACY:
cs5530_0 = dev; cs5530_0 = dev;
break; break;
}
} }
} }
if (!master_0) { if (!master_0) {
......
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