linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM i.MX6q: unmap memory mapped at imx6q_opp_check_speed_grading()
@ 2015-01-13 17:46 Sebastian Andrzej Siewior
  2015-01-20  6:27 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-01-13 17:46 UTC (permalink / raw)
  To: linux-arm-kernel

imx6q_opp_check_speed_grading() remaps memory to the base variable and
never unmaps it. I can't see how this can be of any use later so here I
unmap it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 arch/arm/mach-imx/mach-imx6q.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 5057d61298b7..4ad6e473cf83 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -329,7 +329,7 @@ static void __init imx6q_opp_check_speed_grading(struct device *cpu_dev)
 			if (dev_pm_opp_disable(cpu_dev, 852000000))
 				pr_warn("failed to disable 852 MHz OPP\n");
 	}
-
+	iounmap(base);
 put_node:
 	of_node_put(np);
 }
-- 
2.1.4

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

* [PATCH] ARM i.MX6q: unmap memory mapped at imx6q_opp_check_speed_grading()
  2015-01-13 17:46 [PATCH] ARM i.MX6q: unmap memory mapped at imx6q_opp_check_speed_grading() Sebastian Andrzej Siewior
@ 2015-01-20  6:27 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2015-01-20  6:27 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 13, 2015 at 06:46:53PM +0100, Sebastian Andrzej Siewior wrote:
> imx6q_opp_check_speed_grading() remaps memory to the base variable and
> never unmaps it. I can't see how this can be of any use later so here I
> unmap it.
> 
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

Applied, thanks. 

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

end of thread, other threads:[~2015-01-20  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 17:46 [PATCH] ARM i.MX6q: unmap memory mapped at imx6q_opp_check_speed_grading() Sebastian Andrzej Siewior
2015-01-20  6:27 ` Shawn Guo

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).