All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [patch 9/12] pci_dev_b to list_for_each_entry:
@ 2004-08-20 19:00 Domen Puncer
  0 siblings, 0 replies; only message in thread
From: Domen Puncer @ 2004-08-20 19:00 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

--- kjt2/arch/sparc/kernel/pcic.c	2004-08-20 18:58:55.000000000 +0200
+++ kjt2-lfe/arch/sparc/kernel/pcic.c	2004-08-20 20:30:06.000000000 +0200
@@ -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:

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-20 19:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-20 19:00 [Kernel-janitors] [patch 9/12] pci_dev_b to list_for_each_entry: Domen Puncer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.