Messages in this thread Patch in this message | | | Subject | Re: [PATCH] PCI fixes for 2.6.9 | Date | Tue, 19 Oct 2004 15:42:14 -0700 | From | Greg KH <> |
| |
ChangeSet 1.1997.37.18, 2004/10/06 11:59:04-07:00, janitor@sternwelten.at
[PATCH] PCI list_for_each: arch-ia64-pci-pci.c
Change for loops with list_for_each_entry().
Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |