PCI: rockchip: dw: call dw_pcie_host_deinit() depends on CONFIG_NO_GKI

Fixes: fbdf4ef963 ("PCI: rockchip: dw: Add remove() support")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2f8911dec167cf52f260b1a520a83ba0fadc2f04
This commit is contained in:
Tao Huang
2024-10-22 18:50:44 +08:00
parent 07bdafb291
commit 8a9ca1a1ff

View File

@@ -1663,7 +1663,7 @@ static int rk_pcie_remove(struct platform_device *pdev)
}
}
dw_pcie_host_deinit(&rk_pcie->pci->pp);
if (IS_ENABLED(CONFIG_NO_GKI)) dw_pcie_host_deinit(&rk_pcie->pci->pp);
rk_pcie_writel_apb(rk_pcie, PCIE_CLIENT_INTR_MASK, 0xffffffff);
destroy_workqueue(rk_pcie->hot_rst_wq);
pcie_dw_dmatest_unregister(rk_pcie->dma_obj);