diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-10-26 21:06:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 18:04:18 -0500 |
commit | b09549ef9b66b9547520572bedd7af3c1f0747d7 (patch) | |
tree | 20aee6d1c81aa3ed4f49bb214546a2282b3cd9b0 /drivers/pci/rom.c | |
parent | ad668599f263988eaac74354349d64e3c0990a77 (diff) |
PCI: drivers/pci/rom.c: #if 0 two functions
This patch #if 0's the following unused global functions:
- rom.c: pci_map_rom_copy()
- rom.c: pci_remove_rom()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/rom.c')
-rw-r--r-- | drivers/pci/rom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/rom.c b/drivers/pci/rom.c index dbbcc04abd1..a98b2470b9e 100644 --- a/drivers/pci/rom.c +++ b/drivers/pci/rom.c | |||
@@ -162,6 +162,7 @@ void __iomem *pci_map_rom(struct pci_dev *pdev, size_t *size) | |||
162 | return rom; | 162 | return rom; |
163 | } | 163 | } |
164 | 164 | ||
165 | #if 0 | ||
165 | /** | 166 | /** |
166 | * pci_map_rom_copy - map a PCI ROM to kernel space, create a copy | 167 | * pci_map_rom_copy - map a PCI ROM to kernel space, create a copy |
167 | * @pdev: pointer to pci device struct | 168 | * @pdev: pointer to pci device struct |
@@ -196,6 +197,7 @@ void __iomem *pci_map_rom_copy(struct pci_dev *pdev, size_t *size) | |||
196 | 197 | ||
197 | return (void __iomem *)(unsigned long)res->start; | 198 | return (void __iomem *)(unsigned long)res->start; |
198 | } | 199 | } |
200 | #endif /* 0 */ | ||
199 | 201 | ||
200 | /** | 202 | /** |
201 | * pci_unmap_rom - unmap the ROM from kernel space | 203 | * pci_unmap_rom - unmap the ROM from kernel space |
@@ -218,6 +220,7 @@ void pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom) | |||
218 | pci_disable_rom(pdev); | 220 | pci_disable_rom(pdev); |
219 | } | 221 | } |
220 | 222 | ||
223 | #if 0 | ||
221 | /** | 224 | /** |
222 | * pci_remove_rom - disable the ROM and remove its sysfs attribute | 225 | * pci_remove_rom - disable the ROM and remove its sysfs attribute |
223 | * @pdev: pointer to pci device struct | 226 | * @pdev: pointer to pci device struct |
@@ -236,6 +239,7 @@ void pci_remove_rom(struct pci_dev *pdev) | |||
236 | IORESOURCE_ROM_COPY))) | 239 | IORESOURCE_ROM_COPY))) |
237 | pci_disable_rom(pdev); | 240 | pci_disable_rom(pdev); |
238 | } | 241 | } |
242 | #endif /* 0 */ | ||
239 | 243 | ||
240 | /** | 244 | /** |
241 | * pci_cleanup_rom - internal routine for freeing the ROM copy created | 245 | * pci_cleanup_rom - internal routine for freeing the ROM copy created |
@@ -256,6 +260,4 @@ void pci_cleanup_rom(struct pci_dev *pdev) | |||
256 | } | 260 | } |
257 | 261 | ||
258 | EXPORT_SYMBOL(pci_map_rom); | 262 | EXPORT_SYMBOL(pci_map_rom); |
259 | EXPORT_SYMBOL(pci_map_rom_copy); | ||
260 | EXPORT_SYMBOL(pci_unmap_rom); | 263 | EXPORT_SYMBOL(pci_unmap_rom); |
261 | EXPORT_SYMBOL(pci_remove_rom); | ||