Skip to content

Commit

Permalink
powerpc/pci: Override pcibios_release_device()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gavin Shan authored and Benjamin Herrenschmidt committed Jul 24, 2013
1 parent f285649 commit 008a493
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/powerpc/kernel/pci-hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 008a493

Please sign in to comment.