Skip to content

Commit af257c7

Browse files
committed
Merge branch 'pci/controller/sg2042'
- Fix sg2042_pcie_remove() reference count issue (Christophe JAILLET) * pci/controller/sg2042: PCI: sg2042: Fix a reference count issue in sg2042_pcie_remove()
2 parents dfb77c8 + 932ec9d commit af257c7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/pci/controller/cadence/pcie-sg2042.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,12 @@ static int sg2042_pcie_probe(struct platform_device *pdev)
7474
static void sg2042_pcie_remove(struct platform_device *pdev)
7575
{
7676
struct cdns_pcie *pcie = platform_get_drvdata(pdev);
77-
struct device *dev = &pdev->dev;
7877
struct cdns_pcie_rc *rc;
7978

8079
rc = container_of(pcie, struct cdns_pcie_rc, pcie);
8180
cdns_pcie_host_disable(rc);
8281

8382
cdns_pcie_disable_phy(pcie);
84-
85-
pm_runtime_disable(dev);
8683
}
8784

8885
static int sg2042_pcie_suspend_noirq(struct device *dev)

0 commit comments

Comments
 (0)