|
@@ -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);
|
|
|
|
|