From: Alex Chiang Date: Sun, 8 Mar 2009 02:35:47 +0000 (-0700) Subject: PCIe: portdrv: call pci_disable_device during remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d89987193631bf23d1735c55d13a06d4b8d0e9bd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Matthew Wilcox --- diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 248b4db91552..5ea566e20b37 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)); }