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,8 +281,8 @@ static unsigned int __init init_chipset_cs5530 (struct pci_dev *dev, const char ...@@ -281,8 +281,8 @@ 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;
...@@ -292,7 +292,6 @@ static unsigned int __init init_chipset_cs5530 (struct pci_dev *dev, const char ...@@ -292,7 +292,6 @@ static unsigned int __init init_chipset_cs5530 (struct pci_dev *dev, const char
break; break;
} }
} }
}
if (!master_0) { if (!master_0) {
printk(KERN_ERR "%s: unable to locate PCI MASTER function\n", name); printk(KERN_ERR "%s: unable to locate PCI MASTER function\n", name);
return 0; return 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