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>
This commit is contained in:

committed by
Bjorn Helgaas

parent
9a994e8ec7
commit
6ae32c539c
@@ -1132,6 +1132,7 @@ static void pci_release_dev(struct device *dev)
|
||||
pci_dev = to_pci_dev(dev);
|
||||
pci_release_capabilities(pci_dev);
|
||||
pci_release_of_node(pci_dev);
|
||||
pcibios_release_device(pci_dev);
|
||||
kfree(pci_dev);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user