PCI: Remove unused pci_vpd_truncate()
[cascardo/linux.git] / drivers / pci / access.c
index 0857ca9..7f8b78c 100644 (file)
@@ -380,30 +380,6 @@ int pci_vpd_pci22_init(struct pci_dev *dev)
        return 0;
 }
 
-/**
- * pci_vpd_truncate - Set available Vital Product Data size
- * @dev:       pci device struct
- * @size:      available memory in bytes
- *
- * Adjust size of available VPD area.
- */
-int pci_vpd_truncate(struct pci_dev *dev, size_t size)
-{
-       if (!dev->vpd)
-               return -EINVAL;
-
-       /* limited by the access method */
-       if (size > dev->vpd->len)
-               return -EINVAL;
-
-       dev->vpd->len = size;
-       if (dev->vpd->attr)
-               dev->vpd->attr->size = size;
-
-       return 0;
-}
-EXPORT_SYMBOL(pci_vpd_truncate);
-
 /**
  * pci_cfg_access_lock - Lock PCI config reads/writes
  * @dev:       pci device struct