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

[PATCH] PCI: remove usage of pci_for_each_dev() in arch/alpha/kernel/sys_sio.c

parent 337ba1c8
...@@ -85,10 +85,10 @@ static unsigned int __init ...@@ -85,10 +85,10 @@ static unsigned int __init
sio_collect_irq_levels(void) sio_collect_irq_levels(void)
{ {
unsigned int level_bits = 0; unsigned int level_bits = 0;
struct pci_dev *dev; struct pci_dev *dev = NULL;
/* Iterate through the devices, collecting IRQ levels. */ /* Iterate through the devices, collecting IRQ levels. */
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
if ((dev->class >> 16 == PCI_BASE_CLASS_BRIDGE) && if ((dev->class >> 16 == PCI_BASE_CLASS_BRIDGE) &&
(dev->class >> 8 != PCI_CLASS_BRIDGE_PCMCIA)) (dev->class >> 8 != PCI_CLASS_BRIDGE_PCMCIA))
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