diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2009-01-01 13:52:12 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:13:27 -0500 |
commit | fa6c993736cb8cc18af86b8d17b608efa7882ab5 (patch) | |
tree | 7ec2c443fab2049ca49f5bf6060eec2ca5985d07 /drivers/pci/pcie/portdrv_bus.c | |
parent | e7ae88486670f3904f187d0fff9dcf469bcdd8ba (diff) |
PCI: PCIe portdrv: Rearrange code so that related things are together
Rearrange code in drivers/pci/pcie/portdrv_bus.c and
drivers/pci/pcie/portdrv_core.c so that related functions and data
structures are closer together.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie/portdrv_bus.c')
-rw-r--r-- | drivers/pci/pcie/portdrv_bus.c | 10 |
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 | |||
48 | int pcie_port_bus_register(void) | ||
49 | { | ||
50 | return bus_register(&pcie_port_bus_type); | ||
51 | } | ||
52 | |||
53 | void pcie_port_bus_unregister(void) | ||
54 | { | ||
55 | bus_unregister(&pcie_port_bus_type); | ||
56 | } | ||