Browse Source

[PATCH] powerpc: export PCI fixup routine

There is code in the RPAPHP directory that is identical to this routine;
I'll be removing that code in an upcoming patch, but this patch is needed
to expose the function to make it callable.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
linas 19 years ago
parent
commit
31087d7d49
2 changed files with 2 additions and 1 deletions
  1. 1 1
      arch/powerpc/platforms/pseries/pci_dlpar.c
  2. 1 0
      include/asm-powerpc/pci-bridge.h

+ 1 - 1
arch/powerpc/platforms/pseries/pci_dlpar.c

@@ -77,7 +77,7 @@ pcibios_remove_pci_devices(struct pci_bus *bus)
 }
 }
 
 
 /* Must be called before pci_bus_add_devices */
 /* Must be called before pci_bus_add_devices */
-static void
+void
 pcibios_fixup_new_pci_devices(struct pci_bus *bus, int fix_bus)
 pcibios_fixup_new_pci_devices(struct pci_bus *bus, int fix_bus)
 {
 {
 	struct pci_dev *dev;
 	struct pci_dev *dev;

+ 1 - 0
include/asm-powerpc/pci-bridge.h

@@ -136,6 +136,7 @@ void pcibios_remove_pci_devices(struct pci_bus *bus);
 
 
 /** Discover new pci devices under this bus, and add them */
 /** Discover new pci devices under this bus, and add them */
 void pcibios_add_pci_devices(struct pci_bus * bus);
 void pcibios_add_pci_devices(struct pci_bus * bus);
+void pcibios_fixup_new_pci_devices(struct pci_bus *bus, int fix_bus);
 
 
 extern int pcibios_remove_root_bus(struct pci_controller *phb);
 extern int pcibios_remove_root_bus(struct pci_controller *phb);