]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: twl6040: Correct clk_ops
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 30 May 2016 08:55:09 +0000 (11:55 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 15 Aug 2016 19:09:48 +0000 (12:09 -0700)
Since the drover only supports prepare callbacks, the use of is_enabled is
not correct, it should be handling is_prepared.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-twl6040.c

index 697c66757400ccc2e502b9bf24b79bdf94d7fa6d..e167e0bbaff52f1bab2cb8f12d51ae38ec1e0f1c 100644 (file)
@@ -34,7 +34,7 @@ struct twl6040_clk {
        int enabled;
 };
 
-static int twl6040_bitclk_is_enabled(struct clk_hw *hw)
+static int twl6040_bitclk_is_prepared(struct clk_hw *hw)
 {
        struct twl6040_clk *twl6040_clk = container_of(hw, struct twl6040_clk,
                                                       mcpdm_fclk);
@@ -66,7 +66,7 @@ static void twl6040_bitclk_unprepare(struct clk_hw *hw)
 }
 
 static const struct clk_ops twl6040_mcpdm_ops = {
-       .is_enabled = twl6040_bitclk_is_enabled,
+       .is_prepared = twl6040_bitclk_is_prepared,
        .prepare = twl6040_bitclk_prepare,
        .unprepare = twl6040_bitclk_unprepare,
 };