Commit af908362 authored by Arvind Yadav's avatar Arvind Yadav Committed by Stephen Boyd

clk: mediatek: clk-mt8173: Unmap region obtained by of_iomap

Free memory mapping if init is not successful.
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: default avatarJames Liao <jamesjj.liao@mediatek.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 5519cf23
...@@ -1074,8 +1074,10 @@ static void __init mtk_apmixedsys_init(struct device_node *node) ...@@ -1074,8 +1074,10 @@ static void __init mtk_apmixedsys_init(struct device_node *node)
} }
mt8173_pll_clk_data = clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); mt8173_pll_clk_data = clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
if (!clk_data) if (!clk_data) {
iounmap(base);
return; return;
}
mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment