浏览代码

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>
Harunobu Kurokawa 8 年之前
父节点
当前提交
e94888d237
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pci/host/pcie-rcar.c

+ 1 - 1
drivers/pci/host/pcie-rcar.c

@@ -1165,7 +1165,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)
 	err = hw_init_fn(pcie);
 	err = hw_init_fn(pcie);
 	if (err) {
 	if (err) {
 		dev_info(dev, "PCIe link down\n");
 		dev_info(dev, "PCIe link down\n");
-		err = 0;
+		err = -ENODEV;
 		goto err_pm_put;
 		goto err_pm_put;
 	}
 	}