]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Remove reference to PCI device
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 24 Jul 2013 02:24:51 +0000 (10:24 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 24 Jul 2013 04:18:46 +0000 (14:18 +1000)
commiteebd1a9ce3a13b8535fa625f01268e7d7abf2593
tree9dbd6b9d409357ff207e3ed7b762b9f494bbba7b
parentfb3cb259fd6a127418e176e26911c60073f9784f
powerpc/eeh: Remove reference to PCI device

We will rely on pcibios_release_device() to remove the EEH cache
and unbind EEH device for the specific PCI device. So we shouldn't
hold the reference to the PCI device from EEH cache and EEH device.
Otherwise, pcibios_release_device() won't be called as we expected.
The patch removes the reference to the PCI device in EEH core.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_cache.c