PCI: imx6: Return real error code from imx6_add_pcie_port()

When devm_request_irq() fails, imx6_add_pcie_port() should return the real
error code instead of always returning -ENODEV.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
Fabio Estevam 2015-09-11 09:08:52 -03:00 committed by Bjorn Helgaas
parent 6ff33f3902
commit 89b2d4f14b
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ static int __init imx6_add_pcie_port(struct pcie_port *pp,
IRQF_SHARED, "mx6-pcie-msi", pp);
if (ret) {
dev_err(&pdev->dev, "failed to request MSI irq\n");
return -ENODEV;
return ret;
}
}