diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-09-11 08:08:52 -0400 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2015-09-24 18:07:52 -0400 |
commit | 89b2d4f14b147bcb499f5e7b1c6e6ce082a58e8f (patch) | |
tree | bc7fed17351e6b0cf36432c9577001aaf709e477 | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) |
PCI: imx6: Return real error code from imx6_add_pcie_port()
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>
-rw-r--r-- | drivers/pci/host/pci-imx6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index 8f3a9813c4e5..2d0d0fe50c99 100644 --- 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, | |||
539 | IRQF_SHARED, "mx6-pcie-msi", pp); | 539 | IRQF_SHARED, "mx6-pcie-msi", pp); |
540 | if (ret) { | 540 | if (ret) { |
541 | dev_err(&pdev->dev, "failed to request MSI irq\n"); | 541 | dev_err(&pdev->dev, "failed to request MSI irq\n"); |
542 | return -ENODEV; | 542 | return ret; |
543 | } | 543 | } |
544 | } | 544 | } |
545 | 545 | ||