Commit 5fd4bf6a authored by Fabio Estevam's avatar Fabio Estevam Committed by Bjorn Helgaas

PCI: xilinx-nwl: 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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Cc: Michal Simek <michal.simek@xilinx.com>
parent 293962d6
...@@ -812,7 +812,7 @@ static int nwl_pcie_parse_dt(struct nwl_pcie *pcie, ...@@ -812,7 +812,7 @@ static int nwl_pcie_parse_dt(struct nwl_pcie *pcie,
pcie->irq_intx = platform_get_irq_byname(pdev, "intx"); pcie->irq_intx = platform_get_irq_byname(pdev, "intx");
if (pcie->irq_intx < 0) { if (pcie->irq_intx < 0) {
dev_err(dev, "failed to get intx IRQ %d\n", pcie->irq_intx); dev_err(dev, "failed to get intx IRQ %d\n", pcie->irq_intx);
return -EINVAL; return pcie->irq_intx;
} }
irq_set_chained_handler_and_data(pcie->irq_intx, irq_set_chained_handler_and_data(pcie->irq_intx,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment