powerpc/pci: Override pcibios_release_device()

The patch overrides pcibios_release_device() to release EEH
resources (EEH cache, unbinding EEH device) for the indicated PCI
device.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Gavin Shan 2013-07-24 10:24:53 +08:00 committed by Benjamin Herrenschmidt
parent f2856491d2
commit 008a4938ea

View File

@ -21,6 +21,17 @@
#include <asm/firmware.h>
#include <asm/eeh.h>
/**
* pcibios_release_device - release PCI device
* @dev: PCI device
*
* The function is called before releasing the indicated PCI device.
*/
void pcibios_release_device(struct pci_dev *dev)
{
eeh_remove_device(dev, 1);
}
/**
* __pcibios_remove_pci_devices - remove all devices under this bus
* @bus: the indicated PCI bus