Skip to content

Commit 990161e

Browse files
akemnadebebarino
authored andcommitted
clk: twl: remove is_prepared
Remove is_prepared to simplify adding of TWL6030 support. The default implementation should be enough. Signed-off-by: Andreas Kemnade <[email protected]> Reviewed-by: Roger Quadros <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 9852d85 commit 990161e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

drivers/clk/clk-twl.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,9 @@ static void twl6032_clks_unprepare(struct clk_hw *hw)
7777
dev_err(cinfo->dev, "clk unprepare failed\n");
7878
}
7979

80-
static int twl6032_clks_is_prepared(struct clk_hw *hw)
81-
{
82-
struct twl_clock_info *cinfo = to_twl_clks_info(hw);
83-
int val;
84-
85-
val = twlclk_read(cinfo, TWL_MODULE_PM_RECEIVER, VREG_STATE);
86-
if (val < 0) {
87-
dev_err(cinfo->dev, "clk read failed\n");
88-
return val;
89-
}
90-
91-
val &= TWL6030_CFG_STATE_MASK;
92-
93-
return val == TWL6030_CFG_STATE_ON;
94-
}
95-
9680
static const struct clk_ops twl6032_clks_ops = {
9781
.prepare = twl6032_clks_prepare,
9882
.unprepare = twl6032_clks_unprepare,
99-
.is_prepared = twl6032_clks_is_prepared,
10083
.recalc_rate = twl_clks_recalc_rate,
10184
};
10285

0 commit comments

Comments
 (0)