linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: soniccat.liu@gmail.com
To: linuxppc-dev@lists.ozlabs.org
Cc: Liu Shuo <soniccat.liu@gmail.com>, timur@freescale.com
Subject: [PATCH] powerpc/fsl_msi : return proper error value when ioremap failed.
Date: Thu,  8 Mar 2012 14:47:37 -0800	[thread overview]
Message-ID: <1331246857-5622-1-git-send-email-soniccat.liu@gmail.com> (raw)

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

             reply	other threads:[~2012-03-12 10:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 22:47 soniccat.liu [this message]
2012-03-12 16:09 ` [PATCH] powerpc/fsl_msi : return proper error value when ioremap failed Timur Tabi
2012-03-16 15:14 ` Kumar Gala
2012-03-16 15:24 ` Kumar Gala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331246857-5622-1-git-send-email-soniccat.liu@gmail.com \
    --to=soniccat.liu@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=timur@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).