mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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 <andreas@kemnade.info> Reviewed-by: Roger Quadros <rogerq@kernel.org> Link: https://lore.kernel.org/r/20241014161109.2222-3-andreas@kemnade.info Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
9852d85ec9
commit
990161eb32
1 changed files with 0 additions and 17 deletions
|
|
@ -77,26 +77,9 @@ static void twl6032_clks_unprepare(struct clk_hw *hw)
|
|||
dev_err(cinfo->dev, "clk unprepare failed\n");
|
||||
}
|
||||
|
||||
static int twl6032_clks_is_prepared(struct clk_hw *hw)
|
||||
{
|
||||
struct twl_clock_info *cinfo = to_twl_clks_info(hw);
|
||||
int val;
|
||||
|
||||
val = twlclk_read(cinfo, TWL_MODULE_PM_RECEIVER, VREG_STATE);
|
||||
if (val < 0) {
|
||||
dev_err(cinfo->dev, "clk read failed\n");
|
||||
return val;
|
||||
}
|
||||
|
||||
val &= TWL6030_CFG_STATE_MASK;
|
||||
|
||||
return val == TWL6030_CFG_STATE_ON;
|
||||
}
|
||||
|
||||
static const struct clk_ops twl6032_clks_ops = {
|
||||
.prepare = twl6032_clks_prepare,
|
||||
.unprepare = twl6032_clks_unprepare,
|
||||
.is_prepared = twl6032_clks_is_prepared,
|
||||
.recalc_rate = twl_clks_recalc_rate,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue