diff options
author | Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> | 2016-12-16 12:50:04 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-01-11 12:39:29 -0600 |
commit | e94888d23736cec51ba851f6e798d0eeb9ef5f41 (patch) | |
tree | 48eff96435868f8b3b34dc3feba80755a0556f16 /drivers/pci/host/pcie-rcar.c | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
download | linux-e94888d23736cec51ba851f6e798d0eeb9ef5f41.tar.gz linux-e94888d23736cec51ba851f6e798d0eeb9ef5f41.tar.bz2 linux-e94888d23736cec51ba851f6e798d0eeb9ef5f41.zip |
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>
Diffstat (limited to 'drivers/pci/host/pcie-rcar.c')
-rw-r--r-- | drivers/pci/host/pcie-rcar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |