Commit b3d91db3 authored by Arvind Yadav's avatar Arvind Yadav Committed by Ralf Baechle

mips: ath79: clock:- Unmap region obtained by of_iomap

Free memory mapping, if ath79_clocks_init_dt_ng is not successful.
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Fixes: 3bdf1071 ("MIPS: ath79: update devicetree clock support for AR9132")
Cc: antonynpavlov@gmail.com
Cc: albeu@free.fr
Cc: hackpascal@gmail.com
Cc: sboyd@codeaurora.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14915/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a3078e59
...@@ -508,16 +508,19 @@ static void __init ath79_clocks_init_dt_ng(struct device_node *np) ...@@ -508,16 +508,19 @@ static void __init ath79_clocks_init_dt_ng(struct device_node *np)
ar9330_clk_init(ref_clk, pll_base); ar9330_clk_init(ref_clk, pll_base);
else { else {
pr_err("%s: could not find any appropriate clk_init()\n", dnfn); pr_err("%s: could not find any appropriate clk_init()\n", dnfn);
goto err_clk; goto err_iounmap;
} }
if (of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data)) { if (of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data)) {
pr_err("%s: could not register clk provider\n", dnfn); pr_err("%s: could not register clk provider\n", dnfn);
goto err_clk; goto err_iounmap;
} }
return; return;
err_iounmap:
iounmap(pll_base);
err_clk: err_clk:
clk_put(ref_clk); clk_put(ref_clk);
......
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