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

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/message/i2o/i2o_core.c

parent b75e41b8
...@@ -3639,12 +3639,12 @@ static int dpt; ...@@ -3639,12 +3639,12 @@ static int dpt;
int __init i2o_pci_scan(void) int __init i2o_pci_scan(void)
{ {
struct pci_dev *dev; struct pci_dev *dev = NULL;
int count=0; int count=0;
printk(KERN_INFO "i2o: Checking for PCI I2O controllers...\n"); printk(KERN_INFO "i2o: Checking for PCI I2O controllers...\n");
pci_for_each_dev(dev) while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
{ {
if((dev->class>>8)!=PCI_CLASS_INTELLIGENT_I2O) if((dev->class>>8)!=PCI_CLASS_INTELLIGENT_I2O)
continue; continue;
......
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