diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-02 16:32:23 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-02 18:04:30 -0500 |
commit | 4105717bc98ba01663ff28f8a16d8716ba9d07fe (patch) | |
tree | adfb3486587a21894035e31ceab84c1c44b8529f /drivers/pci/probe.c | |
parent | d5f78fb0c8ab7f929f94fa4087a2397ac8d29a30 (diff) |
PCI: fix section mismatch warnings referring to pci_do_scan_bus
Fix following warnings:
WARNING: o-x86_64/drivers/pci/built-in.o(.text+0xb054): Section mismatch in reference from the function cpci_configure_slot() to the function .devinit.text:pci_do_scan_bus()
WARNING: o-x86_64/drivers/pci/built-in.o(.text+0x153ab): Section mismatch in reference from the function shpchp_configure_device() to the function .devinit.text:pci_do_scan_bus()
WARNING: o-x86_64/drivers/pci/built-in.o(__ksymtab+0xc0): Section mismatch in reference from the variable __ksymtab_pci_do_scan_bus to the function .devinit.text:pci_do_scan_bus()
PCI hotplug were the only user of pci_do_scan_bus()
so moving this function to a separate file that is build
only when we enable CONFIG_HOTPLUG_PCI.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 34fa0397b55..3bb2bc2a1e7 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -1040,20 +1040,6 @@ unsigned int pci_scan_child_bus(struct pci_bus *bus) | |||
1040 | return max; | 1040 | return max; |
1041 | } | 1041 | } |
1042 | 1042 | ||
1043 | unsigned int __devinit pci_do_scan_bus(struct pci_bus *bus) | ||
1044 | { | ||
1045 | unsigned int max; | ||
1046 | |||
1047 | max = pci_scan_child_bus(bus); | ||
1048 | |||
1049 | /* | ||
1050 | * Make the discovered devices available. | ||
1051 | */ | ||
1052 | pci_bus_add_devices(bus); | ||
1053 | |||
1054 | return max; | ||
1055 | } | ||
1056 | |||
1057 | struct pci_bus * pci_create_bus(struct device *parent, | 1043 | struct pci_bus * pci_create_bus(struct device *parent, |
1058 | int bus, struct pci_ops *ops, void *sysdata) | 1044 | int bus, struct pci_ops *ops, void *sysdata) |
1059 | { | 1045 | { |
@@ -1140,7 +1126,6 @@ EXPORT_SYMBOL(pci_scan_bus_parented); | |||
1140 | 1126 | ||
1141 | #ifdef CONFIG_HOTPLUG | 1127 | #ifdef CONFIG_HOTPLUG |
1142 | EXPORT_SYMBOL(pci_add_new_bus); | 1128 | EXPORT_SYMBOL(pci_add_new_bus); |
1143 | EXPORT_SYMBOL(pci_do_scan_bus); | ||
1144 | EXPORT_SYMBOL(pci_scan_slot); | 1129 | EXPORT_SYMBOL(pci_scan_slot); |
1145 | EXPORT_SYMBOL(pci_scan_bridge); | 1130 | EXPORT_SYMBOL(pci_scan_bridge); |
1146 | EXPORT_SYMBOL_GPL(pci_scan_child_bus); | 1131 | EXPORT_SYMBOL_GPL(pci_scan_child_bus); |