projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce7d89
)
PCI: rcar: Return -ENODEV from host bridge probe when no card present
author
Harunobu Kurokawa
<harunobu.kurokawa.dn@renesas.com>
Fri, 16 Dec 2016 11:50:04 +0000
(12:50 +0100)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 11 Jan 2017 18:39:29 +0000
(12:39 -0600)
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>
drivers/pci/host/pcie-rcar.c
patch
|
blob
|
history
diff --git
a/drivers/pci/host/pcie-rcar.c
b/drivers/pci/host/pcie-rcar.c
index aca85be101f83378ee0ca1b0cb15d31d164127c2..0d9b96c3c49dee63f01365b40a31612797f70e95 100644
(file)
--- 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;
}