Re: [PATCH] PCI fixes for 2.6.9

From: Greg KH
Date: Wed Oct 20 2004 - 05:53:20 EST


ChangeSet 1.1997.37.18, 2004/10/06 11:59:04-07:00, janitor@xxxxxxxxxxxxxx

[PATCH] PCI list_for_each: arch-ia64-pci-pci.c

Change for loops with list_for_each_entry().

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


arch/ia64/pci/pci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
--- a/arch/ia64/pci/pci.c 2004-10-19 15:26:11 -07:00
+++ b/arch/ia64/pci/pci.c 2004-10-19 15:26:11 -07:00
@@ -365,10 +365,10 @@
void __devinit
pcibios_fixup_bus (struct pci_bus *b)
{
- struct list_head *ln;
+ struct pci_dev *dev;

- for (ln = b->devices.next; ln != &b->devices; ln = ln->next)
- pcibios_fixup_device_resources(pci_dev_b(ln), b);
+ list_for_each_entry(dev, &b->devices, bus_list)
+ pcibios_fixup_device_resources(dev, b);

return;
}

-
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/