diff options
author | Jisheng Zhang <jszhang@marvell.com> | 2013-08-23 10:34:01 +0800 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-08-23 11:44:03 -0700 |
commit | f98d007d332b819b7777bf280a07fc3d2dfe2f7a (patch) | |
tree | 536d498f579458def7a41c60dc74b132699349b3 /drivers/clk/mvebu/clk-cpu.c | |
parent | 89ac8d7ae1cde0f8c7a2f85c2e3b475d54aa9163 (diff) | |
download | linux-f98d007d332b819b7777bf280a07fc3d2dfe2f7a.tar.bz2 |
clk: mvebu: add missing iounmap
Add missing iounmap to setup error path.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/mvebu/clk-cpu.c')
-rw-r--r-- | drivers/clk/mvebu/clk-cpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c index b0fbc0715491..1466865b0743 100644 --- a/drivers/clk/mvebu/clk-cpu.c +++ b/drivers/clk/mvebu/clk-cpu.c @@ -119,7 +119,7 @@ void __init of_cpu_clk_setup(struct device_node *node) cpuclk = kzalloc(ncpus * sizeof(*cpuclk), GFP_KERNEL); if (WARN_ON(!cpuclk)) - return; + goto cpuclk_out; clks = kzalloc(ncpus * sizeof(*clks), GFP_KERNEL); if (WARN_ON(!clks)) @@ -170,6 +170,8 @@ bail_out: kfree(cpuclk[ncpus].clk_name); clks_out: kfree(cpuclk); +cpuclk_out: + iounmap(clock_complex_base); } CLK_OF_DECLARE(armada_xp_cpu_clock, "marvell,armada-xp-cpu-clock", |