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

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

parent 89c81f58
......@@ -870,13 +870,13 @@ static int __init ide_scan_pcidev(struct pci_dev *dev)
void __init ide_scan_pcibus (int scan_direction)
{
struct pci_dev *dev;
struct pci_dev *dev = NULL;
struct pci_driver *d;
struct list_head *l, *n;
pre_init = 0;
if (!scan_direction) {
pci_for_each_dev(dev) {
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
ide_scan_pcidev(dev);
}
} else {
......
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