ARM i.MX6q: unmap memory mapped at imx6q_opp_check_speed_grading()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 13 Jan 2015 17:46:53 +0000 (18:46 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 20 Jan 2015 06:26:45 +0000 (14:26 +0800)
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>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/mach-imx6q.c

index 5057d61..4ad6e47 100644 (file)
@@ -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);
 }