linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/fsl_msi : return proper error value when ioremap failed.
@ 2012-03-08 22:47 soniccat.liu
  2012-03-12 16:09 ` Timur Tabi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: soniccat.liu @ 2012-03-08 22:47 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Liu Shuo, timur

From: Liu Shuo <soniccat.liu@gmail.com>

Signed-off-by: Liu Shuo <soniccat.liu@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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-16 15:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 22:47 [PATCH] powerpc/fsl_msi : return proper error value when ioremap failed soniccat.liu
2012-03-12 16:09 ` Timur Tabi
2012-03-16 15:14 ` Kumar Gala
2012-03-16 15:24 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).