patch-2.3.39 linux/arch/ppc/kernel/gemini_pci.c

Next file: linux/arch/ppc/kernel/gemini_setup.c
Previous file: linux/arch/ppc/kernel/entry.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/arch/ppc/kernel/gemini_pci.c linux/arch/ppc/kernel/gemini_pci.c
@@ -229,13 +229,11 @@
 {
 	struct pci_dev *dev;
 
-	if (!bus->devices && !bus->children)
-		return;
-
 	io_base = ALIGN(io_base, 4*KB);
 	mem_base = ALIGN(mem_base, 4*KB);
 
-	for( dev = bus->devices; dev; dev = dev->sibling ) {
+	pci_for_each_dev(dev)
+	{
 		if (((dev->class >> 16) != PCI_BASE_CLASS_BRIDGE) ||
 		    ((dev->class >> 8) == PCI_CLASS_BRIDGE_OTHER))
 			layout_dev( dev );

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)