aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/sunxi
diff options
context:
space:
mode:
authorEmilio López <emilio@elopez.com.ar>2013-03-27 17:20:42 -0400
committerMike Turquette <mturquette@linaro.org>2013-04-04 16:52:50 -0400
commit5a4fe9b55db4ec5b6627245a91445c6495a136df (patch)
treee3dac316337b665bc8b08b12e9c2a85eb3b9f749 /drivers/clk/sunxi
parent13569a709ad12aef4d9c2b352c92e95ab7dd201f (diff)
clk: sunxi: drop CLK_IGNORE_UNUSED
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>
Diffstat (limited to 'drivers/clk/sunxi')
-rw-r--r--drivers/clk/sunxi/clk-sunxi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index 244de90d5360..daa51ab9701f 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -41,8 +41,8 @@ static void __init sunxi_osc_clk_setup(struct device_node *node)
41 41
42 parent = of_clk_get_parent_name(node, 0); 42 parent = of_clk_get_parent_name(node, 0);
43 43
44 clk = clk_register_gate(NULL, clk_name, parent, CLK_IGNORE_UNUSED, 44 clk = clk_register_gate(NULL, clk_name, parent, 0, reg,
45 reg, SUNXI_OSC24M_GATE, 0, &clk_lock); 45 SUNXI_OSC24M_GATE, 0, &clk_lock);
46 46
47 if (clk) { 47 if (clk) {
48 of_clk_add_provider(node, of_clk_src_simple_get, clk); 48 of_clk_add_provider(node, of_clk_src_simple_get, clk);
@@ -198,8 +198,8 @@ static void __init sunxi_factors_clk_setup(struct device_node *node,
198 198
199 parent = of_clk_get_parent_name(node, 0); 199 parent = of_clk_get_parent_name(node, 0);
200 200
201 clk = clk_register_factors(NULL, clk_name, parent, CLK_IGNORE_UNUSED, 201 clk = clk_register_factors(NULL, clk_name, parent, 0, reg,
202 reg, data->table, data->getter, &clk_lock); 202 data->table, data->getter, &clk_lock);
203 203
204 if (clk) { 204 if (clk) {
205 of_clk_add_provider(node, of_clk_src_simple_get, clk); 205 of_clk_add_provider(node, of_clk_src_simple_get, clk);