提交 89b2d4f1 编写于 作者: F Fabio Estevam 提交者: Bjorn Helgaas

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: NFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: NBjorn Helgaas <helgaas@kernel.org>
Reviewed-by: NLucas Stach <l.stach@pengutronix.de>
上级 6ff33f39
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册