diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-06-04 13:18:14 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-06-04 19:24:31 -0400 |
commit | 6ae32c539c0412ca789fb6041be45eeabf78431c (patch) | |
tree | b36080d53311d18da30cd2ab502cb7c27200eedc /drivers/pci/probe.c | |
parent | 9a994e8ec7e7d6b1a66c74a683596b0f38f4e345 (diff) |
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/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 70f10fa3c1b2..58cc0a8a0979 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -1132,6 +1132,7 @@ static void pci_release_dev(struct device *dev) | |||
1132 | pci_dev = to_pci_dev(dev); | 1132 | pci_dev = to_pci_dev(dev); |
1133 | pci_release_capabilities(pci_dev); | 1133 | pci_release_capabilities(pci_dev); |
1134 | pci_release_of_node(pci_dev); | 1134 | pci_release_of_node(pci_dev); |
1135 | pcibios_release_device(pci_dev); | ||
1135 | kfree(pci_dev); | 1136 | kfree(pci_dev); |
1136 | } | 1137 | } |
1137 | 1138 | ||