From: Fabio Estevam Date: Thu, 31 Aug 2017 17:52:02 +0000 (-0300) Subject: PCI: dra7xx: Fix platform_get_irq() error handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f3ec75245ee9c85578a50d090029d1726105a4d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Bjorn Helgaas Acked-by: Kishon Vijay Abraham I --- 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,