aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2014-01-10 17:10:13 -0500
committerBjorn Helgaas <bhelgaas@google.com>2014-01-13 13:14:43 -0500
commit3984ca1c6e493d06fa7e8dc96ce2b23b86175ec4 (patch)
treee0be9de2afdcdab7e83f3a410b30345ad0ef1fcd /include/linux/pci.h
parent7c2dd2d7cfabdb37875c5e481a0c3cc5962bb0b6 (diff)
PCI: Remove unused pci_vpd_truncate()
My philosophy is unused code is dead code. And dead code is subject to bit rot and is a likely source of bugs. Use it or lose it. This reverts db5679437a2b ("PCI: add interface to set visible size of VPD"), removing this interface: pci_vpd_truncate() [bhelgaas: split to separate patch, also remove prototype from pci.h] Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index f2284f1332db..53cdc6dc411b 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1009,7 +1009,6 @@ unsigned int pci_rescan_bus(struct pci_bus *bus);
1009/* Vital product data routines */ 1009/* Vital product data routines */
1010ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); 1010ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf);
1011ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf); 1011ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf);
1012int pci_vpd_truncate(struct pci_dev *dev, size_t size);
1013 1012
1014/* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */ 1013/* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */
1015resource_size_t pcibios_retrieve_fw_addr(struct pci_dev *dev, int idx); 1014resource_size_t pcibios_retrieve_fw_addr(struct pci_dev *dev, int idx);