Skip to content

Commit 535d936

Browse files
Dinh Nguyenbebarino
authored andcommitted
clk: socfpga: remove clk_ops enable/disable methods
The enable/disable clock ops are already defined in the standard clock ops, so we don't need to assign them. Signed-off-by: Dinh Nguyen <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 762d961 commit 535d936

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

drivers/clk/socfpga/clk-pll-a10.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ static struct clk * __init __socfpga_pll_init(struct device_node *node,
102102
pll_clk->hw.hw.init = &init;
103103

104104
pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA;
105-
clk_pll_ops.enable = clk_gate_ops.enable;
106-
clk_pll_ops.disable = clk_gate_ops.disable;
107105

108106
clk = clk_register(NULL, &pll_clk->hw.hw);
109107
if (WARN_ON(IS_ERR(clk))) {

drivers/clk/socfpga/clk-pll-s10.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ struct clk *s10_register_pll(const struct stratix10_pll_clock *clks,
138138
pll_clk->hw.hw.init = &init;
139139

140140
pll_clk->hw.bit_idx = SOCFPGA_PLL_POWER;
141-
clk_pll_ops.enable = clk_gate_ops.enable;
142-
clk_pll_ops.disable = clk_gate_ops.disable;
143141

144142
clk = clk_register(NULL, &pll_clk->hw.hw);
145143
if (WARN_ON(IS_ERR(clk))) {

drivers/clk/socfpga/clk-pll.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ static __init struct clk *__socfpga_pll_init(struct device_node *node,
105105
pll_clk->hw.hw.init = &init;
106106

107107
pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA;
108-
clk_pll_ops.enable = clk_gate_ops.enable;
109-
clk_pll_ops.disable = clk_gate_ops.disable;
110108

111109
clk = clk_register(NULL, &pll_clk->hw.hw);
112110
if (WARN_ON(IS_ERR(clk))) {

0 commit comments

Comments
 (0)