patch-2.3.18 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.17/linux/arch/ppc/kernel/gemini_pci.c linux/arch/ppc/kernel/gemini_pci.c
@@ -152,7 +152,7 @@
 
 
 
-static __init void layout_dev( struct pci_dev *dev )
+__init void layout_dev( struct pci_dev *dev )
 {
 	int i;
 	struct pci_bus *bus;
@@ -225,7 +225,7 @@
 					  (cmd|PCI_COMMAND_MASTER));
 }
 
-static __init void layout_bus( struct pci_bus *bus )
+__init void layout_bus( struct pci_bus *bus )
 {
 	struct pci_dev *dev;
 
@@ -246,12 +246,9 @@
 {
 	struct pci_bus *bus;
 	unsigned long orig_mem_base, orig_io_base;
-
+	
 	orig_mem_base = pci_mem_base;
 	orig_io_base = pci_io_base;
-
-	for( bus = &pci_root; bus; bus = bus->children )
-		layout_bus( bus );
 
 	pci_mem_base = orig_mem_base;
 	pci_io_base = orig_io_base;

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