clk:mmp:clk-of-mmp2: Free memory and Unmap region obtained by kzalloc and of_iomap
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 20 Sep 2016 11:08:58 +0000 (16:38 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 9 Dec 2016 00:29:39 +0000 (16:29 -0800)
commit81ba3cc29a03b2cd9360739014b7d8ade88a9863
treec86d5204f592d0ed75f0137c0f3e456a0ae0b418
parent19b9f29d256f5b088b30109169a711967788fb56
clk:mmp:clk-of-mmp2: Free memory and Unmap region obtained by kzalloc and of_iomap

Free memory and memory mapping , if mmp2_clk_init is not successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
[sboyd@codeaurora.org: Put return at the right place]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mmp/clk-of-mmp2.c