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)
commit4966bfa1b3347ee75e6d93859a2e8ce9a662390c
treed2a9d07d0dd88c0f7049b1f6c90ff499add668b4
parent3f28c5af3964c11e61e9a58df77cae5ebdb8209e
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