Skip to content

Commit 24ffb8c

Browse files
committed
Merge branch 'pci/controller/tegra194'
- Return success from endpoint probe before incorrectly dropping the reference to the BPMP (Vidya Sagar) * pci/controller/tegra194: PCI: tegra194: Fix probe path for Endpoint mode
2 parents f4036f6 + 1932600 commit 24ffb8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/pci/controller/dwc/pcie-tegra194.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,11 +2274,14 @@ static int tegra_pcie_dw_probe(struct platform_device *pdev)
22742274
ret = tegra_pcie_config_ep(pcie, pdev);
22752275
if (ret < 0)
22762276
goto fail;
2277+
else
2278+
return 0;
22772279
break;
22782280

22792281
default:
22802282
dev_err(dev, "Invalid PCIe device type %d\n",
22812283
pcie->of_data->mode);
2284+
ret = -EINVAL;
22822285
}
22832286

22842287
fail:

0 commit comments

Comments
 (0)