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

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

parent 9cdb63b7
......@@ -703,9 +703,9 @@ pci_dac_set_dma_mask(struct pci_dev *dev, u64 mask)
static int __devinit pci_init(void)
{
struct pci_dev *dev;
struct pci_dev *dev = NULL;
pci_for_each_dev(dev) {
while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
pci_fixup_device(PCI_FIXUP_FINAL, dev);
}
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