diff mbox

[05/14] cpufreq: exynos4x12: iounmap in error path

Message ID 1422910697-5920-6-git-send-email-edubezval@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Eduardo Valentin Feb. 2, 2015, 8:58 p.m. UTC
When error occurs, allow systems to release iomapped area.

Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
---
 drivers/cpufreq/exynos4x12-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/cpufreq/exynos4x12-cpufreq.c b/drivers/cpufreq/exynos4x12-cpufreq.c
index 3d067f2..3da36baf 100644
--- a/drivers/cpufreq/exynos4x12-cpufreq.c
+++ b/drivers/cpufreq/exynos4x12-cpufreq.c
@@ -232,6 +232,7 @@  err_mout_mpll:
 err_moutcore:
 	clk_put(cpu_clk);
 
+	iounmap(info->cmu_regs);
 	of_node_put(np);
 	pr_debug("%s: failed initialization\n", __func__);