Skip to content

Commit

Permalink
clk: sunxi: drop CLK_IGNORE_UNUSED
Browse files Browse the repository at this point in the history
This flag was in place to prevent important clocks from getting gated
while they had no users. Now that the UART driver supports clocks
properly, we can drop this.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Emilio López authored and Mike Turquette committed Apr 4, 2013
1 parent 13569a7 commit 5a4fe9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/clk/sunxi/clk-sunxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ static void __init sunxi_osc_clk_setup(struct device_node *node)

parent = of_clk_get_parent_name(node, 0);

clk = clk_register_gate(NULL, clk_name, parent, CLK_IGNORE_UNUSED,
reg, SUNXI_OSC24M_GATE, 0, &clk_lock);
clk = clk_register_gate(NULL, clk_name, parent, 0, reg,
SUNXI_OSC24M_GATE, 0, &clk_lock);

if (clk) {
of_clk_add_provider(node, of_clk_src_simple_get, clk);
Expand Down Expand Up @@ -198,8 +198,8 @@ static void __init sunxi_factors_clk_setup(struct device_node *node,

parent = of_clk_get_parent_name(node, 0);

clk = clk_register_factors(NULL, clk_name, parent, CLK_IGNORE_UNUSED,
reg, data->table, data->getter, &clk_lock);
clk = clk_register_factors(NULL, clk_name, parent, 0, reg,
data->table, data->getter, &clk_lock);

if (clk) {
of_clk_add_provider(node, of_clk_src_simple_get, clk);
Expand Down

0 comments on commit 5a4fe9b

Please sign in to comment.