projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
113ff9c
)
clk: st: clk-flexgen: Unmap region obtained by of_iomap
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Mon, 19 Sep 2016 08:21:24 +0000
(13:51 +0530)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 9 Dec 2016 00:35:22 +0000
(16:35 -0800)
Free memory mapping, if probe is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/st/clk-flexgen.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/st/clk-flexgen.c
b/drivers/clk/st/clk-flexgen.c
index a485f3b284b9f5825fb206966197489df8594746..918ba3164da94c9dcf02927b17940f7e76165551 100644
(file)
--- a/
drivers/clk/st/clk-flexgen.c
+++ b/
drivers/clk/st/clk-flexgen.c
@@
-329,8
+329,10
@@
static void __init st_of_flexgen_setup(struct device_node *np)
return;
parents = flexgen_get_parents(np, &num_parents);
- if (!parents)
+ if (!parents) {
+ iounmap(reg);
return;
+ }
match = of_match_node(flexgen_of_match, np);
if (match) {
@@
-394,6
+396,7
@@
static void __init st_of_flexgen_setup(struct device_node *np)
return;
err:
+ iounmap(reg);
if (clk_data)
kfree(clk_data->clks);
kfree(clk_data);