]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Release the refcount for pci_dev
authorWei Yang <weiyang@linux.vnet.ibm.com>
Wed, 23 Apr 2014 02:26:33 +0000 (10:26 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 03:11:20 +0000 (13:11 +1000)
commit9db2faf38dcf77c438e736f7feca52d938a88380
treed2a9d07d0dd88c0f7049b1f6c90ff499add668b4
parent2f0c9e74d90b6824be005b7e4d0896f7949a33e7
powerpc/powernv: Release the refcount for pci_dev

On PowerNV platform, we are holding an unnecessary refcount on a pci_dev, which
leads to the pci_dev is not destroyed when hotplugging a pci device.

This patch release the unnecessary refcount.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c