diff options
author | Michael Neuling <mikey@neuling.org> | 2015-05-27 16:06:57 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-03 13:27:15 +1000 |
commit | 10e796309a670bb2c13eae5aa6f60e10d2d6a6e1 (patch) | |
tree | 1a7569b0ff2c12aa6686a480b4ea15a914b8ace2 /arch/powerpc/kernel/pci-hotplug.c | |
parent | 5b64d2cc41216bef3e19913d1a39c324c2587d11 (diff) | |
download | lwn-10e796309a670bb2c13eae5aa6f60e10d2d6a6e1.tar.gz lwn-10e796309a670bb2c13eae5aa6f60e10d2d6a6e1.zip |
powerpc/pci: Add release_device() hook to phb ops
Add release_device() hook to phb ops so we can clean up for specific phbs.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/pci-hotplug.c')
-rw-r--r-- | arch/powerpc/kernel/pci-hotplug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci-hotplug.c b/arch/powerpc/kernel/pci-hotplug.c index 7ed85a69a9c2..7f9ed0c1f6b9 100644 --- a/arch/powerpc/kernel/pci-hotplug.c +++ b/arch/powerpc/kernel/pci-hotplug.c @@ -29,7 +29,12 @@ */ void pcibios_release_device(struct pci_dev *dev) { + struct pci_controller *phb = pci_bus_to_host(dev->bus); + eeh_remove_device(dev); + + if (phb->controller_ops.release_device) + phb->controller_ops.release_device(dev); } /** |