PCI: Move pci_vpd_release() from header file to pci/access.c
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 22 Feb 2016 19:58:06 +0000 (13:58 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 29 Feb 2016 23:47:16 +0000 (17:47 -0600)
Move pci_vpd_release() so it's next to the other VPD functions.  This puts
it next to pci_vpd_pci22_init(), which allocates the space freed by
pci_vpd_release().

Tested-by: Shane Seymour <shane.seymour@hpe.com>
Tested-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
drivers/pci/access.c
drivers/pci/pci.h

index 4c4c73420fb2e9be51491e1756c9526a78b54714..ca42a33bbb001ba00b9d599ffcfbd6a7e7ec7ded 100644 (file)
@@ -581,6 +581,12 @@ int pci_vpd_pci22_init(struct pci_dev *dev)
        return 0;
 }
 
+void pci_vpd_release(struct pci_dev *dev)
+{
+       if (dev->vpd)
+               dev->vpd->ops->release(dev);
+}
+
 /**
  * pci_cfg_access_lock - Lock PCI config reads/writes
  * @dev:       pci device struct
index 9a1660f592ef75f061d154c68629d9bd795c538a..52e86b0d56d2548d701c2f8ead75a499363ea56e 100644 (file)
@@ -107,11 +107,7 @@ struct pci_vpd {
 };
 
 int pci_vpd_pci22_init(struct pci_dev *dev);
-static inline void pci_vpd_release(struct pci_dev *dev)
-{
-       if (dev->vpd)
-               dev->vpd->ops->release(dev);
-}
+void pci_vpd_release(struct pci_dev *dev);
 
 /* PCI /proc functions */
 #ifdef CONFIG_PROC_FS