From: Harunobu Kurokawa <harunobu.kurokawa...@renesas.com> 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...@renesas.com> [simon: updated changelog] Signed-off-by: Simon Horman <horms+rene...@verge.net.au> --- drivers/pci/host/pcie-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index aca85be101f8..0d9b96c3c49d 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c @@ -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; } -- 2.7.0.rc3.207.g0ac5344