mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 12/12]  pci_dev_b to list_for_each_entry:  drivers-pci-setup-bus.c
@ 2004-09-01 20:16 janitor
  0 siblings, 0 replies; only message in thread
From: janitor @ 2004-09-01 20:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: greg, janitor



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>




---

 linux-2.6.9-rc1-bk7-max/drivers/pci/setup-bus.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff -puN drivers/pci/setup-bus.c~list-for-each-drivers_pci_setup-bus2 drivers/pci/setup-bus.c
--- linux-2.6.9-rc1-bk7/drivers/pci/setup-bus.c~list-for-each-drivers_pci_setup-bus2	2004-09-01 19:38:29.000000000 +0200
+++ linux-2.6.9-rc1-bk7-max/drivers/pci/setup-bus.c	2004-09-01 19:38:29.000000000 +0200
@@ -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);
 	}
 }

_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-01 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 20:16 [patch 12/12] pci_dev_b to list_for_each_entry: drivers-pci-setup-bus.c janitor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®