Commit e94888d2 authored by Harunobu Kurokawa's avatar Harunobu Kurokawa Committed by Bjorn Helgaas

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: default avatarHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
[simon: updated changelog]
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 7ce7d89f
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment