aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/portdrv_bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pcie/portdrv_bus.c')
-rw-r--r--drivers/pci/pcie/portdrv_bus.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pci/pcie/portdrv_bus.c b/drivers/pci/pcie/portdrv_bus.c
index 3a03db4323ad..eec89b767f9f 100644
--- a/drivers/pci/pcie/portdrv_bus.c
+++ b/drivers/pci/pcie/portdrv_bus.c
@@ -44,3 +44,13 @@ static int pcie_port_bus_match(struct device *dev, struct device_driver *drv)
44 44
45 return 1; 45 return 1;
46} 46}
47
48int pcie_port_bus_register(void)
49{
50 return bus_register(&pcie_port_bus_type);
51}
52
53void pcie_port_bus_unregister(void)
54{
55 bus_unregister(&pcie_port_bus_type);
56}