mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
PCI: rockchip: dw: Fix rk_pcie_remove()
Fixes: fbdf4ef963 ("PCI: rockchip: dw: Add remove() support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I9f630c85a8022c02232f5898f35556f3eab20cf1
This commit is contained in:
@@ -1789,7 +1789,8 @@ static int rk_pcie_remove(struct platform_device *pdev)
|
||||
* Timeout should not happen as it's longer than regular probe actually.
|
||||
* But probe maybe fail, so need to double check bridge bus.
|
||||
*/
|
||||
if (!rk_pcie || !rk_pcie->finish_probe || !rk_pcie->pci->pp.bridge->bus) {
|
||||
if (!rk_pcie || !rk_pcie->pci || !rk_pcie->pci->pp.bridge ||
|
||||
!rk_pcie->pci->pp.bridge->bus) {
|
||||
dev_dbg(dev, "%s return early due to failure in threaded init\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user