[PATCH] powerpc/fsl_msi : return proper error value when ioremap failed.
soniccat.liu at gmail.com
soniccat.liu at gmail.com
Fri Mar 9 09:47:37 EST 2012
From: Liu Shuo <soniccat.liu at gmail.com>
Signed-off-by: Liu Shuo <soniccat.liu at gmail.com>
---
arch/powerpc/sysdev/fsl_msi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c
index ecb5c19..0bab156 100644
--- a/arch/powerpc/sysdev/fsl_msi.c
+++ b/arch/powerpc/sysdev/fsl_msi.c
@@ -410,6 +410,7 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev)
msi->msi_regs = ioremap(res.start, resource_size(&res));
if (!msi->msi_regs) {
+ err = -ENOMEM;
dev_err(&dev->dev, "could not map node %s\n",
dev->dev.of_node->full_name);
goto error_out;
--
1.7.4.1
More information about the Linuxppc-dev
mailing list