diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:01 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:01 +0000 |
commit | 7996a3d79d55b7f879dfd62e202bbfe2963718d3 (patch) | |
tree | 8d9f6759fec4099b9be503c11c7ed174f7204980 /libdde-linux26/contrib/drivers/pci/hotplug-pci.c | |
parent | 4fbe7358c7747a9165f776eb19addbb9baf7def2 (diff) |
really properly move files
Diffstat (limited to 'libdde-linux26/contrib/drivers/pci/hotplug-pci.c')
-rw-r--r-- | libdde-linux26/contrib/drivers/pci/hotplug-pci.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libdde-linux26/contrib/drivers/pci/hotplug-pci.c b/libdde-linux26/contrib/drivers/pci/hotplug-pci.c new file mode 100644 index 00000000..4d4a6447 --- /dev/null +++ b/libdde-linux26/contrib/drivers/pci/hotplug-pci.c @@ -0,0 +1,20 @@ +/* Core PCI functionality used only by PCI hotplug */ + +#include <linux/pci.h> +#include "pci.h" + + +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; +} +EXPORT_SYMBOL(pci_do_scan_bus); |