Skip to contentSkip to conversation

pci_dev_b to list_for_each_entry:

PATCH New Domen Puncer 1 participant 1 message Aug 20, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 9/12 pci_dev_b to list_for_each_entry:

arch/sparc/kernel/pcic.c +2 -3
@@ -607,7 +607,7 @@
  */
 void __init pcibios_fixup_bus(struct pci_bus *bus)
 {
-	struct list_head *walk;
+	struct pci_dev *dev;
 	int i, has_io, has_mem;
 	unsigned int cmd;
 	struct linux_pcic *pcic;
@@ -629,8 +629,7 @@
 		return;
 	}
 
-	list_for_each(walk, &bus->devices) {
-		struct pci_dev *dev = pci_dev_b(walk);
+	list_for_each_entry(dev, &bus->devices, bus_list) {
 
 		/*
 		 * Comment from i386 branch:

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors