clk: fixed-rate: Remove clk_register_fixed_rate_with_accuracy()
authorStephen Boyd <sboyd@kernel.org>
Fri, 30 Aug 2019 15:09:14 +0000 (08:09 -0700)
committerStephen Boyd <sboyd@kernel.org>
Sun, 5 Jan 2020 21:34:37 +0000 (13:34 -0800)
There aren't any users of this API anymore. Remove it.

Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190830150923.259497-4-sboyd@kernel.org
drivers/clk/clk-fixed-rate.c
include/linux/clk-provider.h

index 3ea41d5a97aba956e3f69b88fa355203226d022e..80149912e21d66e615066cc39ed401a824d623bd 100644 (file)
@@ -89,20 +89,6 @@ struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
 }
 EXPORT_SYMBOL_GPL(clk_hw_register_fixed_rate_with_accuracy);
 
-struct clk *clk_register_fixed_rate_with_accuracy(struct device *dev,
-               const char *name, const char *parent_name, unsigned long flags,
-               unsigned long fixed_rate, unsigned long fixed_accuracy)
-{
-       struct clk_hw *hw;
-
-       hw = clk_hw_register_fixed_rate_with_accuracy(dev, name, parent_name,
-                       flags, fixed_rate, fixed_accuracy);
-       if (IS_ERR(hw))
-               return ERR_CAST(hw);
-       return hw->clk;
-}
-EXPORT_SYMBOL_GPL(clk_register_fixed_rate_with_accuracy);
-
 /**
  * clk_hw_register_fixed_rate - register fixed-rate clock with the clock
  * framework
@@ -125,8 +111,13 @@ struct clk *clk_register_fixed_rate(struct device *dev, const char *name,
                const char *parent_name, unsigned long flags,
                unsigned long fixed_rate)
 {
-       return clk_register_fixed_rate_with_accuracy(dev, name, parent_name,
-                                                    flags, fixed_rate, 0);
+       struct clk_hw *hw;
+
+       hw = clk_hw_register_fixed_rate_with_accuracy(dev, name, parent_name,
+                                                     flags, fixed_rate, 0);
+       if (IS_ERR(hw))
+               return ERR_CAST(hw);
+       return hw->clk;
 }
 EXPORT_SYMBOL_GPL(clk_register_fixed_rate);
 
index 4bef76fab942fcd1a4afaf0fc2d36a8c3669a0b4..d7082f421850cc2b59da3a0e7ffb5a4a6242c427 100644 (file)
@@ -337,9 +337,6 @@ struct clk *clk_register_fixed_rate(struct device *dev, const char *name,
 struct clk_hw *clk_hw_register_fixed_rate(struct device *dev, const char *name,
                const char *parent_name, unsigned long flags,
                unsigned long fixed_rate);
-struct clk *clk_register_fixed_rate_with_accuracy(struct device *dev,
-               const char *name, const char *parent_name, unsigned long flags,
-               unsigned long fixed_rate, unsigned long fixed_accuracy);
 void clk_unregister_fixed_rate(struct clk *clk);
 struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
                const char *name, const char *parent_name, unsigned long flags,