summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-08-31 20:52:06 +0300
committerBjorn Helgaas <bhelgaas@google.com>2017-09-07 16:52:42 +0300
commitc7aca96aa48d59b08763452cf1881b7411876c59 (patch)
tree2df95d8da7ca1007382a3c064db0ca76646d2564 /drivers
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff)
downloadlinux-c7aca96aa48d59b08763452cf1881b7411876c59.tar.xz
PCI: xgene: 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> Cc: Duc Dang <dhdang@apm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/host/pci-xgene-msi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-xgene-msi.c b/drivers/pci/host/pci-xgene-msi.c
index f1b633bce525..1f42a202b021 100644
--- a/drivers/pci/host/pci-xgene-msi.c
+++ b/drivers/pci/host/pci-xgene-msi.c
@@ -489,7 +489,7 @@ static int xgene_msi_probe(struct platform_device *pdev)
if (virt_msir < 0) {
dev_err(&pdev->dev, "Cannot translate IRQ index %d\n",
irq_index);
- rc = -EINVAL;
+ rc = virt_msir;
goto error;
}
xgene_msi->msi_groups[irq_index].gic_irq = virt_msir;