]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: Remove unused clk_hw_rate_is_protected
authorDr. David Alan Gilbert <linux@treblig.org>
Wed, 9 Oct 2024 00:35:52 +0000 (01:35 +0100)
committerStephen Boyd <sboyd@kernel.org>
Wed, 9 Oct 2024 22:34:55 +0000 (15:34 -0700)
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.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20241009003552.254675-1-linux@treblig.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c
include/linux/clk-provider.h

index d02451f951cf057d068f980d985c95deb861a2d9..9b45fa005030f56e1478b9742715ebcde898133f 100644 (file)
@@ -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);
index 7e43caabb54b901d68484b86c8349febfe12ba0f..5cbd112d1187ebe7551359d228ea59661e52f73f 100644 (file)
@@ -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);