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/pci.h | |
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/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 294849d24590..a6dfee2f6d2b 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -26,20 +26,15 @@ extern int pci_user_write_config_dword(struct pci_dev *dev, int where, u32 val); | |||
26 | #ifdef CONFIG_PROC_FS | 26 | #ifdef CONFIG_PROC_FS |
27 | extern int pci_proc_attach_device(struct pci_dev *dev); | 27 | extern int pci_proc_attach_device(struct pci_dev *dev); |
28 | extern int pci_proc_detach_device(struct pci_dev *dev); | 28 | extern int pci_proc_detach_device(struct pci_dev *dev); |
29 | extern int pci_proc_attach_bus(struct pci_bus *bus); | ||
30 | extern int pci_proc_detach_bus(struct pci_bus *bus); | 29 | extern int pci_proc_detach_bus(struct pci_bus *bus); |
31 | #else | 30 | #else |
32 | static inline int pci_proc_attach_device(struct pci_dev *dev) { return 0; } | 31 | static inline int pci_proc_attach_device(struct pci_dev *dev) { return 0; } |
33 | static inline int pci_proc_detach_device(struct pci_dev *dev) { return 0; } | 32 | static inline int pci_proc_detach_device(struct pci_dev *dev) { return 0; } |
34 | static inline int pci_proc_attach_bus(struct pci_bus *bus) { return 0; } | ||
35 | static inline int pci_proc_detach_bus(struct pci_bus *bus) { return 0; } | 33 | static inline int pci_proc_detach_bus(struct pci_bus *bus) { return 0; } |
36 | #endif | 34 | #endif |
37 | 35 | ||
38 | /* Functions for PCI Hotplug drivers to use */ | 36 | /* Functions for PCI Hotplug drivers to use */ |
39 | extern unsigned int pci_do_scan_bus(struct pci_bus *bus); | 37 | extern unsigned int pci_do_scan_bus(struct pci_bus *bus); |
40 | extern int pci_remove_device_safe(struct pci_dev *dev); | ||
41 | extern unsigned char pci_max_busnr(void); | ||
42 | extern unsigned char pci_bus_max_busnr(struct pci_bus *bus); | ||
43 | extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap); | 38 | extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap); |
44 | 39 | ||
45 | extern void pci_remove_legacy_files(struct pci_bus *bus); | 40 | extern void pci_remove_legacy_files(struct pci_bus *bus); |