lkml.org 
[lkml]   [2004]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] PCI fixes for 2.6.9
Date
From
ChangeSet 1.1997.37.21, 2004/10/06 12:03:13-07:00, janitor@sternwelten.at

[PATCH] PCI list_for_each: arch-ppc64-kernel-pci_dn.c

s/for/list_for_each/

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/ppc64/kernel/pci_dn.c | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)

diff -Nru a/arch/ppc64/kernel/pci_dn.c b/arch/ppc64/kernel/pci_dn.c
--- a/arch/ppc64/kernel/pci_dn.c 2004-10-19 15:25:53 -07:00
+++ b/arch/ppc64/kernel/pci_dn.c 2004-10-19 15:25:53 -07:00
@@ -196,11 +196,9 @@

static void __init pci_fixup_bus_sysdata_list(struct list_head *bus_list)
{
- struct list_head *ln;
struct pci_bus *bus;

- for (ln = bus_list->next; ln != bus_list; ln = ln->next) {
- bus = pci_bus_b(ln);
+ list_for_each_entry(bus, bus_list, node) {
if (bus->self)
bus->sysdata = bus->self->sysdata;
pci_fixup_bus_sysdata_list(&bus->children);
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.978 / U:0.172 seconds]
©2003-2011 Jasper Spaans. Advertise on this site