summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2013-06-04 19:18:14 +0200
committerBjorn Helgaas <bhelgaas@google.com>2013-06-04 17:24:31 -0600
commit6ae32c539c0412ca789fb6041be45eeabf78431c (patch)
treeb36080d53311d18da30cd2ab502cb7c27200eedc /drivers/pci/pci.c
parent9a994e8ec7e7d6b1a66c74a683596b0f38f4e345 (diff)
downloadblackbird-obmc-linux-6ae32c539c0412ca789fb6041be45eeabf78431c.tar.gz
blackbird-obmc-linux-6ae32c539c0412ca789fb6041be45eeabf78431c.zip
PCI: Add pcibios_release_device()
Platforms may want to provide architecture-specific functionality when a PCI device is released. Add a pcibios_release_device() call that architectures can override to do so. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index e5f4e55d407d..709791b70ca0 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1335,6 +1335,16 @@ int __weak pcibios_add_device (struct pci_dev *dev)
}
/**
+ * pcibios_release_device - provide arch specific hooks when releasing device dev
+ * @dev: the PCI device being released
+ *
+ * Permits the platform to provide architecture specific functionality when
+ * devices are released. This is the default implementation. Architecture
+ * implementations can override this.
+ */
+void __weak pcibios_release_device(struct pci_dev *dev) {}
+
+/**
* pcibios_disable_device - disable arch specific PCI resources for device dev
* @dev: the PCI device to disable
*
OpenPOWER on IntegriCloud