pci_dev_b to list_for_each_entry:
PATCH 7/12 pci_dev_b to list_for_each_entry:
arch/ppc64/kernel/pci.c +4 -7
@@ -247,11 +247,10 @@static void __init pcibios_claim_one_bus (struct pci_bus *b) { -struct list_head *ld; +struct pci_dev *dev;struct pci_bus *child_bus; -list_for_each (ld, &b->devices) { -struct pci_dev *dev =pci_dev_b (ld); +list_for_each_entry (dev, &b->devices, bus_list) {int i;for (i =0 ; i <PCI_NUM_RESOURCES ; i++) {
@@ -270,12 +269,10 @@#ifndef CONFIG_PPC_ISERIES static void __init pcibios_claim_of_setup (void ) { -struct list_head *lb; +struct pci_bus *b; -list_for_each (lb, &pci_root_buses) { -struct pci_bus *b =pci_bus_b (lb); +list_for_each_entry (b, &pci_root_buses, node)pcibios_claim_one_bus (b); - } }#endif
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors