Skip to contentSkip to conversation

clk: Remove unused clk_hw_rate_is_protected

PATCH Applied [email protected] 2 participants 2 messages Oct 9, 2024 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: Remove unused clk_hw_rate_is_protected

From: "Dr. David Alan Gilbert" <[email protected]>

clk_hw_rate_is_protected() was added in 2017's commit e55a839a7a1c ("clk: add clock protection mechanism to clk core")

but has been unused.

Remove it.

---
 drivers/clk/clk.c            | 6 ------
 include/linux/clk-provider.h | 1 -
 2 files changed, 7 deletions(-)
drivers/clk/clk.c +0 -6
index d02451f951cf..9b45fa005030 100644
@@ -608,12 +608,6 @@ bool clk_hw_is_prepared(const struct clk_hw *hw)
 }
 EXPORT_SYMBOL_GPL(clk_hw_is_prepared);
 
-bool clk_hw_rate_is_protected(const struct clk_hw *hw)
-{
-	return clk_core_rate_is_protected(hw->core);
-}
-EXPORT_SYMBOL_GPL(clk_hw_rate_is_protected);
-
 bool clk_hw_is_enabled(const struct clk_hw *hw)
 {
 	return clk_core_is_enabled(hw->core);
include/linux/clk-provider.h +0 -1
index 7e43caabb54b..5cbd112d1187 100644
@@ -1360,7 +1360,6 @@ unsigned long clk_hw_get_flags(const struct clk_hw *hw);
 	(clk_hw_get_flags((hw)) & CLK_SET_RATE_PARENT)
 
 bool clk_hw_is_prepared(const struct clk_hw *hw);
-bool clk_hw_rate_is_protected(const struct clk_hw *hw);
 bool clk_hw_is_enabled(const struct clk_hw *hw);
 bool __clk_is_enabled(struct clk *clk);
 struct clk *__clk_lookup(const char *name);
Signature · 1 line
2.46.2