clk: ti: gate: add support for legacy gate init
Legacy clock data is initialialized slightly differently compared to DT clocks, thus add support for this. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Michael Turquette <mturquette@linaro.org>
This commit is contained in:

committed by
Michael Turquette

parent
7c18a65cb5
commit
f187616b36
@@ -222,6 +222,9 @@ struct clk __init *ti_clk_register_clk(struct ti_clk *setup)
|
||||
0, fixed_factor->mult,
|
||||
fixed_factor->div);
|
||||
break;
|
||||
case TI_CLK_GATE:
|
||||
clk = ti_clk_register_gate(setup);
|
||||
break;
|
||||
default:
|
||||
pr_err("bad type for %s!\n", setup->name);
|
||||
clk = ERR_PTR(-EINVAL);
|
||||
|
Reference in New Issue
Block a user