Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
	}
	}