]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: socfpga: remove clk_ops enable/disable methods
authorDinh Nguyen <dinguyen@kernel.org>
Tue, 12 May 2020 18:16:44 +0000 (13:16 -0500)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 02:13:05 +0000 (19:13 -0700)
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 <dinguyen@kernel.org>
Link: https://lkml.kernel.org/r/20200512181647.5071-2-dinguyen@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/socfpga/clk-pll-a10.c
drivers/clk/socfpga/clk-pll-s10.c
drivers/clk/socfpga/clk-pll.c

index 3816fc04b2745840f9657501b38605ca9cc3be8a..6d9395106c0c9574cc7ef8ead82a960ceeba8fb8 100644 (file)
@@ -102,8 +102,6 @@ static struct clk * __init __socfpga_pll_init(struct device_node *node,
        pll_clk->hw.hw.init = &init;
 
        pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA;
-       clk_pll_ops.enable = clk_gate_ops.enable;
-       clk_pll_ops.disable = clk_gate_ops.disable;
 
        clk = clk_register(NULL, &pll_clk->hw.hw);
        if (WARN_ON(IS_ERR(clk))) {
index bcd3f14e9145f1ade97537a5753042be147c77cd..9faa80ff3b53e7e2d3001f4002c8b202b298cdab 100644 (file)
@@ -138,8 +138,6 @@ struct clk *s10_register_pll(const struct stratix10_pll_clock *clks,
        pll_clk->hw.hw.init = &init;
 
        pll_clk->hw.bit_idx = SOCFPGA_PLL_POWER;
-       clk_pll_ops.enable = clk_gate_ops.enable;
-       clk_pll_ops.disable = clk_gate_ops.disable;
 
        clk = clk_register(NULL, &pll_clk->hw.hw);
        if (WARN_ON(IS_ERR(clk))) {
index dc65cc0fd3bd12e7ce81415b787243177c52f4ca..a001641b2f421d0258ceb348103cb42798cb3197 100644 (file)
@@ -105,8 +105,6 @@ static __init struct clk *__socfpga_pll_init(struct device_node *node,
        pll_clk->hw.hw.init = &init;
 
        pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA;
-       clk_pll_ops.enable = clk_gate_ops.enable;
-       clk_pll_ops.disable = clk_gate_ops.disable;
 
        clk = clk_register(NULL, &pll_clk->hw.hw);
        if (WARN_ON(IS_ERR(clk))) {