|
@@ -279,7 +279,6 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
|
|
|
{
|
|
|
/* Propagate hose info into the subordinate devices. */
|
|
|
|
|
|
- struct list_head *ln;
|
|
|
struct pci_dev *dev = bus->self;
|
|
|
|
|
|
if (pci_probe_only && dev &&
|
|
@@ -288,9 +287,7 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
|
|
|
pcibios_fixup_device_resources(dev, bus);
|
|
|
}
|
|
|
|
|
|
- for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) {
|
|
|
- dev = pci_dev_b(ln);
|
|
|
-
|
|
|
+ list_for_each_entry(dev, &bus->devices, bus_list) {
|
|
|
if ((dev->class >> 8) != PCI_CLASS_BRIDGE_PCI)
|
|
|
pcibios_fixup_device_resources(dev, bus);
|
|
|
}
|