mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vasyl Gomonovych <gomonovych@gmail.com>
To: ralf@linux-mips.org, paul.gortmaker@windriver.com,
	jhogan@kernel.org, linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org, gomonovych@gmail.com
Subject: [PATCH] MIPS: TXx9: Add missing iounmap
Date: Thu, 23 Nov 2017 22:49:55 +0100	[thread overview]
Message-ID: <1511473795-20137-1-git-send-email-gomonovych@gmail.com> (raw)

Add the missing iounmap() before put_device and
return from txx9_sramc_init().

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
---
 arch/mips/txx9/generic/setup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 1791a44ee570..6ef5edb85d68 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -965,6 +965,8 @@ void __init txx9_sramc_init(struct resource *r)
 	}
 	return;
 exit_put:
+	if (dev->base)
+		iounmap(dev->base);
 	put_device(&dev->dev);
 	return;
 }
-- 
1.9.1

             reply	other threads:[~2017-11-23 21:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-23 21:49 Vasyl Gomonovych [this message]
2018-03-05 22:37 ` James Hogan

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=1511473795-20137-1-git-send-email-gomonovych@gmail.com \
    --to=gomonovych@gmail.com \
    --cc=jhogan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=ralf@linux-mips.org \
    /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

all inboxes | Powered by JetHome®