]> 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)
commit94dc571c6be190039527a279979ffe0936f61934
tree9dbd6b9d409357ff207e3ed7b762b9f494bbba7b
parent4b9446bbbf0b10b0f97bb1f468848503dab1a658
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