summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2014-07-08 10:08:36 +0800
committerBjorn Helgaas <bhelgaas@google.com>2014-07-16 14:44:20 -0600
commit4cc901613bd79dfa22d8aea996c2e9f74c04f8f2 (patch)
treefe0ca4a33c770c98398b0a062b78274fd20aee8f /drivers/pci
parentd873b4d449202bfb70aa56fd2c64f68ec281dfe9 (diff)
downloadlinux-4cc901613bd79dfa22d8aea996c2e9f74c04f8f2.tar.bz2
PCI/MSI: Remove unused function msi_remove_pci_irq_vectors()
msi_remove_pci_irq_vectors() is unused, so remove it. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/msi.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index a59d673d074e..dd0a259e3aaa 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -1014,24 +1014,6 @@ void pci_disable_msix(struct pci_dev *dev)
}
EXPORT_SYMBOL(pci_disable_msix);
-/**
- * msi_remove_pci_irq_vectors - reclaim MSI(X) irqs to unused state
- * @dev: pointer to the pci_dev data structure of MSI(X) device function
- *
- * Being called during hotplug remove, from which the device function
- * is hot-removed. All previous assigned MSI/MSI-X irqs, if
- * allocated for this device function, are reclaimed to unused state,
- * which may be used later on.
- **/
-void msi_remove_pci_irq_vectors(struct pci_dev *dev)
-{
- if (!pci_msi_enable || !dev)
- return;
-
- if (dev->msi_enabled || dev->msix_enabled)
- free_msi_irqs(dev);
-}
-
void pci_no_msi(void)
{
pci_msi_enable = 0;