mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user