提交 b53804c7 编写于 作者: L Liu Shuo 提交者: Kumar Gala

powerpc/fsl_msi: return proper error value when ioremap failed.

Signed-off-by: NLiu Shuo <soniccat.liu@gmail.com>
Acked-by: NTimur Tabi <timur@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 e131fbda
...@@ -410,6 +410,7 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev) ...@@ -410,6 +410,7 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev)
msi->msi_regs = ioremap(res.start, resource_size(&res)); msi->msi_regs = ioremap(res.start, resource_size(&res));
if (!msi->msi_regs) { if (!msi->msi_regs) {
err = -ENOMEM;
dev_err(&dev->dev, "could not map node %s\n", dev_err(&dev->dev, "could not map node %s\n",
dev->dev.of_node->full_name); dev->dev.of_node->full_name);
goto error_out; goto error_out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册