diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-12-21 19:08:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-09 15:13:20 -0500 |
commit | 54c762fe62d9ff0982f38e80cbec9c59104311e9 (patch) | |
tree | 524fa5aa095973b8496537d39c70aa8c0d47b243 /drivers/pci/remove.c | |
parent | c64b5eead93f9d3a8ca0e9ca0ffba0b99dc565b9 (diff) |
[PATCH] PCI: drivers/pci: some cleanups
This patch contains the following cleanups:
- hotplug/pciehp_core.c: make the needlessly global hpdriver_context
static
- #if 0 the following unused functions:
- pci.c: pci_bus_max_busnr()
- pci.c: pci_max_busnr()
- proc.c: pci_proc_attach_bus()
- remove.c: pci_remove_device_safe
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r-- | drivers/pci/remove.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index 27a294b6965d..1a6bf9de166f 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -48,6 +48,7 @@ static void pci_destroy_dev(struct pci_dev *dev) | |||
48 | * in question is not being used by a driver. | 48 | * in question is not being used by a driver. |
49 | * Returns 0 on success. | 49 | * Returns 0 on success. |
50 | */ | 50 | */ |
51 | #if 0 | ||
51 | int pci_remove_device_safe(struct pci_dev *dev) | 52 | int pci_remove_device_safe(struct pci_dev *dev) |
52 | { | 53 | { |
53 | if (pci_dev_driver(dev)) | 54 | if (pci_dev_driver(dev)) |
@@ -55,7 +56,7 @@ int pci_remove_device_safe(struct pci_dev *dev) | |||
55 | pci_destroy_dev(dev); | 56 | pci_destroy_dev(dev); |
56 | return 0; | 57 | return 0; |
57 | } | 58 | } |
58 | EXPORT_SYMBOL(pci_remove_device_safe); | 59 | #endif /* 0 */ |
59 | 60 | ||
60 | void pci_remove_bus(struct pci_bus *pci_bus) | 61 | void pci_remove_bus(struct pci_bus *pci_bus) |
61 | { | 62 | { |