summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-08-31 14:52:02 -0300
committerBjorn Helgaas <bhelgaas@google.com>2017-09-05 13:29:46 -0500
commit2f3ec75245ee9c85578a50d090029d1726105a4d (patch)
treeee424f953dd7de22adcbac473fb899255629cc64 /drivers/pci/dwc
parenta0d21ba120d2c7daae847633bb59a3c3375cc1d7 (diff)
downloadop-kernel-dev-2f3ec75245ee9c85578a50d090029d1726105a4d.zip
op-kernel-dev-2f3ec75245ee9c85578a50d090029d1726105a4d.tar.gz
PCI: dra7xx: Fix platform_get_irq() error handling
When platform_get_irq() fails we should propagate the real error value instead of always returning -EINVAL. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/pci/dwc')
-rw-r--r--drivers/pci/dwc/pci-dra7xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c
index 34d8689..d72b557 100644
--- a/drivers/pci/dwc/pci-dra7xx.c
+++ b/drivers/pci/dwc/pci-dra7xx.c
@@ -435,7 +435,7 @@ static int __init dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx,
pp->irq = platform_get_irq(pdev, 1);
if (pp->irq < 0) {
dev_err(dev, "missing IRQ resource\n");
- return -EINVAL;
+ return pp->irq;
}
ret = devm_request_irq(dev, pp->irq, dra7xx_pcie_msi_irq_handler,
OpenPOWER on IntegriCloud