pci_dev_b to list_for_each_entry:
PATCH 6/12 pci_dev_b to list_for_each_entry:
arch/ppc64/kernel/pSeries_pci.c +2 -3
@@ -584,7 +584,7 @@void __devinit pcibios_fixup_bus (struct pci_bus *bus) {struct pci_controller *hose =PCI_GET_PHB_PTR (bus); -struct list_head *ln; +struct pci_dev *dev;/* XXX or bus->parent? */ struct pci_dev *dev = bus->self;
@@ -626,8 +626,7 @@if (!pci_probe_only)return ; -list_for_each (ln, &bus->devices) { -struct pci_dev *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); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors