diff options
author | Fabio Estevam | 2017-08-31 19:52:02 +0200 |
---|---|---|
committer | Bjorn Helgaas | 2017-09-05 20:29:46 +0200 |
commit | 2f3ec75245ee9c85578a50d090029d1726105a4d (patch) | |
tree | ee424f953dd7de22adcbac473fb899255629cc64 /drivers/pci/dwc/pci-dra7xx.c | |
parent | PCI: dra7xx: Propagate platform_get_irq() errors in dra7xx_pcie_probe() (diff) | |
download | kernel-qcow2-linux-2f3ec75245ee9c85578a50d090029d1726105a4d.tar.gz kernel-qcow2-linux-2f3ec75245ee9c85578a50d090029d1726105a4d.tar.xz kernel-qcow2-linux-2f3ec75245ee9c85578a50d090029d1726105a4d.zip |
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/pci-dra7xx.c')
-rw-r--r-- | drivers/pci/dwc/pci-dra7xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 34d86896694a..d72b557fea11 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, |