clk: mediatek: clk-mt8173: Unmap region obtained by of_iomap
Free memory mapping if init is not successful. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Reviewed-by: James Liao <jamesjj.liao@mediatek.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
Родитель
5519cf23ad
Коммит
af9083627b
|
@ -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);
|
||||
if (!clk_data)
|
||||
if (!clk_data) {
|
||||
iounmap(base);
|
||||
return;
|
||||
}
|
||||
|
||||
mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче