Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82617
b: refs/heads/master
c: 4105717
h: refs/heads/master
i:
  82615: 958479e
v: v3
  • Loading branch information
Sam Ravnborg authored and Greg Kroah-Hartman committed Feb 2, 2008
1 parent 4ad7b78 commit d1a37af
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5f78fb0c8ab7f929f94fa4087a2397ac8d29a30
refs/heads/master: 4105717bc98ba01663ff28f8a16d8716ba9d07fe
3 changes: 3 additions & 0 deletions trunk/drivers/pci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ obj-$(CONFIG_HOTPLUG) += hotplug.o

# Build the PCI Hotplug drivers if we were asked to
obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
ifdef CONFIG_HOTPLUG_PCI
obj-y += hotplug-pci.o
endif

# Build the PCI MSI interrupt support
obj-$(CONFIG_PCI_MSI) += msi.o
Expand Down
20 changes: 20 additions & 0 deletions trunk/drivers/pci/hotplug-pci.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Core PCI functionality used only by PCI hotplug */

#include <linux/pci.h>
#include "pci.h"


unsigned int pci_do_scan_bus(struct pci_bus *bus)
{
unsigned int max;

max = pci_scan_child_bus(bus);

/*
* Make the discovered devices available.
*/
pci_bus_add_devices(bus);

return max;
}
EXPORT_SYMBOL(pci_do_scan_bus);
15 changes: 0 additions & 15 deletions trunk/drivers/pci/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,20 +1040,6 @@ unsigned int pci_scan_child_bus(struct pci_bus *bus)
return max;
}

unsigned int __devinit pci_do_scan_bus(struct pci_bus *bus)
{
unsigned int max;

max = pci_scan_child_bus(bus);

/*
* Make the discovered devices available.
*/
pci_bus_add_devices(bus);

return max;
}

struct pci_bus * pci_create_bus(struct device *parent,
int bus, struct pci_ops *ops, void *sysdata)
{
Expand Down Expand Up @@ -1140,7 +1126,6 @@ EXPORT_SYMBOL(pci_scan_bus_parented);

#ifdef CONFIG_HOTPLUG
EXPORT_SYMBOL(pci_add_new_bus);
EXPORT_SYMBOL(pci_do_scan_bus);
EXPORT_SYMBOL(pci_scan_slot);
EXPORT_SYMBOL(pci_scan_bridge);
EXPORT_SYMBOL_GPL(pci_scan_child_bus);
Expand Down

0 comments on commit d1a37af

Please sign in to comment.