Skip to content

Commit 8aa09cf

Browse files
author
Tero Kristo
committed
clk: ti: remove usage of CLK_IS_BASIC
Remove the usage of CLK_IS_BASIC flag completely from TI clock driver. In most cases, the use is completely redundant, but in some cases we need to use the new API to check if the clock is an OMAP clock or not. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Tested-by: Keerthy <j-keerthy@ti.com>
1 parent 7fd79ee commit 8aa09cf

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎drivers/clk/ti/adpll.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ static int ti_adpll_init_clkout(struct ti_adpll_data *d,
614614

615615
init.name = child_name;
616616
init.ops = ops;
617-
init.flags = CLK_IS_BASIC;
617+
init.flags = 0;
618618
co->hw.init = &init;
619619
parent_names[0] = __clk_get_name(clk0);
620620
parent_names[1] = __clk_get_name(clk1);

‎drivers/clk/ti/clkctrl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ _ti_clkctrl_clk_register(struct omap_clkctrl_provider *provider,
276276
init.parent_names = parents;
277277
init.num_parents = num_parents;
278278
init.ops = ops;
279-
init.flags = CLK_IS_BASIC;
279+
init.flags = 0;
280280

281281
clk = ti_clk_register(NULL, clk_hw, init.name);
282282
if (IS_ERR_OR_NULL(clk)) {

‎drivers/clk/ti/clockdomain.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node)
143143
continue;
144144
}
145145
clk_hw = __clk_get_hw(clk);
146-
if (clk_hw_get_flags(clk_hw) & CLK_IS_BASIC) {
146+
if (!omap2_clk_is_hw_omap(clk_hw)) {
147147
pr_warn("can't setup clkdm for basic clk %s\n",
148148
__clk_get_name(clk));
149149
continue;

‎drivers/clk/ti/divider.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static struct clk *_register_divider(struct device *dev, const char *name,
336336

337337
init.name = name;
338338
init.ops = &ti_clk_divider_ops;
339-
init.flags = flags | CLK_IS_BASIC;
339+
init.flags = flags;
340340
init.parent_names = (parent_name ? &parent_name : NULL);
341341
init.num_parents = (parent_name ? 1 : 0);
342342

‎drivers/clk/ti/dpll3xxx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ static struct clk_hw_omap *omap3_find_clkoutx2_dpll(struct clk_hw *hw)
731731
do {
732732
do {
733733
hw = clk_hw_get_parent(hw);
734-
} while (hw && (clk_hw_get_flags(hw) & CLK_IS_BASIC));
734+
} while (hw && (!omap2_clk_is_hw_omap(hw)));
735735
if (!hw)
736736
break;
737737
pclk = to_clk_hw_omap(hw);

‎drivers/clk/ti/mux.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static struct clk *_register_mux(struct device *dev, const char *name,
143143

144144
init.name = name;
145145
init.ops = &ti_clk_mux_ops;
146-
init.flags = flags | CLK_IS_BASIC;
146+
init.flags = flags;
147147
init.parent_names = parent_names;
148148
init.num_parents = num_parents;
149149

0 commit comments

Comments
 (0)