diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-08-16 22:38:50 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-08-22 13:31:53 -0400 |
commit | 7990681ad8215977b27ac855520720193de2c98f (patch) | |
tree | eca542d2f4b0c5c6f6c704eb681285d564f112a3 /drivers/pci/remove.c | |
parent | 282e1d655fe7c7c2e6b0dd8166c4c6b7c2a1219b (diff) |
PCI: Remove unused, commented-out, code
This removes unused code that was already commented out.
Tested-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r-- | drivers/pci/remove.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index 38281042c31c..44f479f08fff 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -43,25 +43,6 @@ static void pci_destroy_dev(struct pci_dev *dev) | |||
43 | pci_dev_put(dev); | 43 | pci_dev_put(dev); |
44 | } | 44 | } |
45 | 45 | ||
46 | /** | ||
47 | * pci_remove_device_safe - remove an unused hotplug device | ||
48 | * @dev: the device to remove | ||
49 | * | ||
50 | * Delete the device structure from the device lists and | ||
51 | * notify userspace (/sbin/hotplug), but only if the device | ||
52 | * in question is not being used by a driver. | ||
53 | * Returns 0 on success. | ||
54 | */ | ||
55 | #if 0 | ||
56 | int pci_remove_device_safe(struct pci_dev *dev) | ||
57 | { | ||
58 | if (pci_dev_driver(dev)) | ||
59 | return -EBUSY; | ||
60 | pci_destroy_dev(dev); | ||
61 | return 0; | ||
62 | } | ||
63 | #endif /* 0 */ | ||
64 | |||
65 | void pci_remove_bus(struct pci_bus *pci_bus) | 46 | void pci_remove_bus(struct pci_bus *pci_bus) |
66 | { | 47 | { |
67 | pci_proc_detach_bus(pci_bus); | 48 | pci_proc_detach_bus(pci_bus); |