]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: msm: Remove custom clk_set_{max,min}_rate() API
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 17 Jun 2013 17:43:15 +0000 (10:43 -0700)
committerDavid Brown <davidb@codeaurora.org>
Mon, 24 Jun 2013 20:06:43 +0000 (13:06 -0700)
There are no users of this API anymore so let's just remove it.
If a need arises in the future we can extend the common clock API
to handle it.

Acked-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
arch/arm/mach-msm/clock-debug.c
arch/arm/mach-msm/clock.c
arch/arm/mach-msm/include/mach/clk.h

index 4886404d42f587533c175e5474fdedcc4ccd680b..c4b34d7d26fb2f97939e1d3335a8dc6996840e07 100644 (file)
@@ -25,14 +25,7 @@ static int clock_debug_rate_set(void *data, u64 val)
        struct clk *clock = data;
        int ret;
 
-       /* Only increases to max rate will succeed, but that's actually good
-        * for debugging purposes so we don't check for error. */
-       if (clock->flags & CLK_MAX)
-               clk_set_max_rate(clock, val);
-       if (clock->flags & CLK_MIN)
-               ret = clk_set_min_rate(clock, val);
-       else
-               ret = clk_set_rate(clock, val);
+       ret = clk_set_rate(clock, val);
        if (ret != 0)
                printk(KERN_ERR "clk_set%s_rate failed (%d)\n",
                        (clock->flags & CLK_MIN) ? "_min" : "", ret);
index 5fac2dfae980fba5f3b01496aa1ed1461f8fa6d1..8d07b256d8eaae5eb1ee506cef36efbfa5d772ec 100644 (file)
@@ -97,18 +97,6 @@ long clk_round_rate(struct clk *clk, unsigned long rate)
 }
 EXPORT_SYMBOL(clk_round_rate);
 
-int clk_set_min_rate(struct clk *clk, unsigned long rate)
-{
-       return clk->ops->set_min_rate(clk->id, rate);
-}
-EXPORT_SYMBOL(clk_set_min_rate);
-
-int clk_set_max_rate(struct clk *clk, unsigned long rate)
-{
-       return clk->ops->set_max_rate(clk->id, rate);
-}
-EXPORT_SYMBOL(clk_set_max_rate);
-
 int clk_set_parent(struct clk *clk, struct clk *parent)
 {
        return -ENOSYS;
index 5f1c37d4f2233b4283d8718a5428407d2cdf41e3..fd4f4a7a83b3780a4d0dc140cac88879d0865b45 100644 (file)
@@ -25,12 +25,6 @@ enum clk_reset_action {
 
 struct clk;
 
-/* Rate is minimum clock rate in Hz */
-int clk_set_min_rate(struct clk *clk, unsigned long rate);
-
-/* Rate is maximum clock rate in Hz */
-int clk_set_max_rate(struct clk *clk, unsigned long rate);
-
 /* Assert/Deassert reset to a hardware block associated with a clock */
 int clk_reset(struct clk *clk, enum clk_reset_action action);