aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2015-01-13 18:46:53 +0100
committerAlex Shi <alex.shi@linaro.org>2015-11-13 14:02:37 +0800
commitb3502b5f694cf0b98aed867929bd4ac40b7ee67a (patch)
treee58c02f115a92e60f179973e5fbcf9548fb49229
parent326ac6a150447d618093ce69a497c164b45e6a4e (diff)
ARM i.MX6q: unmap memory mapped at imx6q_opp_check_speed_grading()
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> (cherry picked from commit 23bec1727505de4adf3f0ed228bcb8b1a3d2e551) Signed-off-by: Alex Shi <alex.shi@linaro.org>
-rw-r--r--arch/arm/mach-imx/mach-imx6q.c2
1 files changed, 1 insertions, 1 deletions
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);
}