diff options
| author | Maximilian Attems <janitor@sternwelten.at> | 2004-10-05 22:15:41 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-10-05 22:15:41 -0700 |
| commit | 3322aa43b71f3555d8ba74a9fb45c10e600f92fd (patch) | |
| tree | 039d8adc2abb23e23ea70d32c7b5f7e159f61d86 | |
| parent | 186cb06ce42572a8c6d07154ebfef1316940bbe2 (diff) | |
[PATCH] PCI pci_dev_b to list_for_each_entry: drivers-pci-setup-bus.c
list_for_each & pci_(dev|bus)_[bg] replaced by 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>
| -rw-r--r-- | drivers/pci/setup-bus.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index e21250c39273..830baa225061 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -533,16 +533,16 @@ EXPORT_SYMBOL(pci_bus_assign_resources); void __init pci_assign_unassigned_resources(void) { - struct list_head *ln; + struct pci_bus *bus; /* Depth first, calculate sizes and alignments of all subordinate buses. */ - list_for_each(ln, &pci_root_buses) { - pci_bus_size_bridges(pci_bus_b(ln)); + list_for_each_entry(bus, &pci_root_buses, node) { + pci_bus_size_bridges(bus); } /* Depth last, allocate resources and update the hardware. */ - list_for_each(ln, &pci_root_buses) { - pci_bus_assign_resources(pci_bus_b(ln)); - pci_enable_bridges(pci_bus_b(ln)); + list_for_each_entry(bus, &pci_root_buses, node) { + pci_bus_assign_resources(bus); + pci_enable_bridges(bus); } } |
