Re: [PATCH] PCI fixes for 2.6.9

From: Greg KH
Date: Wed Oct 20 2004 - 00:21:55 EST


ChangeSet 1.1997.37.23, 2004/10/06 12:12:44-07:00, janitor@xxxxxxxxxxxxxx

[PATCH] PCI list_for_each: arch-sparc-kernel-pcic.c

s/for/list_for_each/

Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
Signed-off-by: Maximilian Attems <janitor@xxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


arch/sparc/kernel/pcic.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)


diff -Nru a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c
--- a/arch/sparc/kernel/pcic.c 2004-10-19 15:25:43 -07:00
+++ b/arch/sparc/kernel/pcic.c 2004-10-19 15:25:43 -07:00
@@ -603,7 +603,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;
@@ -625,9 +625,7 @@
return;
}

- walk = &bus->devices;
- for (walk = walk->next; walk != &bus->devices; walk = walk->next) {
- struct pci_dev *dev = pci_dev_b(walk);
+ list_for_each_entry(dev, &bus->devices, bus_list) {

/*
* Comment from i386 branch:

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/