projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff33f3
)
PCI: imx6: Return real error code from imx6_add_pcie_port()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Fri, 11 Sep 2015 12:08:52 +0000
(09:08 -0300)
committer
Bjorn Helgaas
<helgaas@kernel.org>
Thu, 24 Sep 2015 22:07:52 +0000
(17:07 -0500)
When devm_request_irq() fails, imx6_add_pcie_port() should return the real
error code instead of always returning -ENODEV.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/host/pci-imx6.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/host/pci-imx6.c
b/drivers/pci/host/pci-imx6.c
index 8f3a9813c4e55a5f16ee48e3b54ccd1ec4985702..2d0d0fe50c9916733f4cac08fc0fd8a1759a9472 100644
(file)
--- a/
drivers/pci/host/pci-imx6.c
+++ b/
drivers/pci/host/pci-imx6.c
@@
-539,7
+539,7
@@
static int __init imx6_add_pcie_port(struct pcie_port *pp,
IRQF_SHARED, "mx6-pcie-msi", pp);
if (ret) {
dev_err(&pdev->dev, "failed to request MSI irq\n");
- return
-ENODEV
;
+ return
ret
;
}
}