diff options
author | Wei Yang <weiyang@linux.vnet.ibm.com> | 2014-04-23 10:26:33 +0800 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-04-28 13:11:20 +1000 |
commit | 4966bfa1b3347ee75e6d93859a2e8ce9a662390c (patch) | |
tree | d2a9d07d0dd88c0f7049b1f6c90ff499add668b4 /arch/powerpc/platforms | |
parent | 3f28c5af3964c11e61e9a58df77cae5ebdb8209e (diff) | |
download | blackbird-op-linux-4966bfa1b3347ee75e6d93859a2e8ce9a662390c.tar.gz blackbird-op-linux-4966bfa1b3347ee75e6d93859a2e8ce9a662390c.zip |
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>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index 1d992f137c48..98824aa99173 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c @@ -343,7 +343,6 @@ static void pnv_ioda_setup_same_PE(struct pci_bus *bus, struct pnv_ioda_pe *pe) pci_name(dev)); continue; } - pci_dev_get(dev); pdn->pcidev = dev; pdn->pe_number = pe->pe_number; pe->dma_weight += pnv_ioda_dma_weight(dev); |