PCI: rcar: Return -ENODEV from host bridge probe when no card present
R-Car PCIe does not support hotplug so it is appropriate to treat the absence of a PCIe card as an -ENODEV error. Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> [simon: updated changelog] Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
7ce7d89f48
commit
e94888d237
@ -1165,7 +1165,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)
|
||||
err = hw_init_fn(pcie);
|
||||
if (err) {
|
||||
dev_info(dev, "PCIe link down\n");
|
||||
err = 0;
|
||||
err = -ENODEV;
|
||||
goto err_pm_put;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user