diff options
author | Alex Chiang <achiang@hp.com> | 2009-03-07 19:35:47 -0700 |
---|---|---|
committer | Matthew Wilcox <willy@linux.intel.com> | 2009-03-12 15:42:35 -0400 |
commit | d89987193631bf23d1735c55d13a06d4b8d0e9bd (patch) | |
tree | 97305df555bbfe4fddcae33f85925bec3705ad0f /drivers/pci/pcie/portdrv_pci.c | |
parent | 6a958d5b28e4a180458e0d319d2e4bb5c4b7da3e (diff) | |
download | op-kernel-dev-d89987193631bf23d1735c55d13a06d4b8d0e9bd.zip op-kernel-dev-d89987193631bf23d1735c55d13a06d4b8d0e9bd.tar.gz |
PCIe: portdrv: call pci_disable_device during remove
The PCIe port driver calls pci_enable_device() during probe but
never calls pci_disable_device() during remove.
Cc: stable@kernel.org
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Diffstat (limited to 'drivers/pci/pcie/portdrv_pci.c')
-rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 248b4db..5ea566e 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -103,6 +103,7 @@ static int __devinit pcie_portdrv_probe (struct pci_dev *dev, static void pcie_portdrv_remove (struct pci_dev *dev) { pcie_port_device_remove(dev); + pci_disable_device(dev); kfree(pci_get_drvdata(dev)); } |