Skip to content

Commit 2129149

Browse files
Dr. David Alan Gilbertbebarino
authored andcommitted
clk: Remove unused clk_hw_rate_is_protected
clk_hw_rate_is_protected() was added in 2017's commit e55a839 ("clk: add clock protection mechanism to clk core") but has been unused. Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 9852d85 commit 2129149

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/clk/clk.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,6 @@ bool clk_hw_is_prepared(const struct clk_hw *hw)
608608
}
609609
EXPORT_SYMBOL_GPL(clk_hw_is_prepared);
610610

611-
bool clk_hw_rate_is_protected(const struct clk_hw *hw)
612-
{
613-
return clk_core_rate_is_protected(hw->core);
614-
}
615-
EXPORT_SYMBOL_GPL(clk_hw_rate_is_protected);
616-
617611
bool clk_hw_is_enabled(const struct clk_hw *hw)
618612
{
619613
return clk_core_is_enabled(hw->core);

include/linux/clk-provider.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,6 @@ unsigned long clk_hw_get_flags(const struct clk_hw *hw);
13601360
(clk_hw_get_flags((hw)) & CLK_SET_RATE_PARENT)
13611361

13621362
bool clk_hw_is_prepared(const struct clk_hw *hw);
1363-
bool clk_hw_rate_is_protected(const struct clk_hw *hw);
13641363
bool clk_hw_is_enabled(const struct clk_hw *hw);
13651364
bool __clk_is_enabled(struct clk *clk);
13661365
struct clk *__clk_lookup(const char *name);

0 commit comments

Comments
 (0)