sh: clkfwk: Kill off clk_recalc_rate().
authorPaul Mundt <lethal@linux-sh.org>
Mon, 11 May 2009 21:05:32 +0000 (06:05 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 May 2009 21:05:32 +0000 (06:05 +0900)
The only user for this is the SH-Mobile r_clk, which is now added as a
root clock and can be kicked via propagate_rate() as usual. Given that,
there is no longer any need for the special clk_recalc_rate(), so we kill
it off.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/clock.h
arch/sh/kernel/cpu/clock.c
arch/sh/kernel/cpu/sh4a/clock-sh7722.c

index fdb9156..6a2f463 100644 (file)
@@ -49,7 +49,6 @@ unsigned long followparent_recalc(struct clk *);
 void recalculate_root_clocks(void);
 void propagate_rate(struct clk *);
 int clk_reparent(struct clk *child, struct clk *parent);
-void clk_recalc_rate(struct clk *);
 int clk_register(struct clk *);
 void clk_unregister(struct clk *);
 
index e3d1de8..7a356de 100644 (file)
@@ -280,20 +280,6 @@ int clk_set_rate_ex(struct clk *clk, unsigned long rate, int algo_id)
 }
 EXPORT_SYMBOL_GPL(clk_set_rate_ex);
 
-void clk_recalc_rate(struct clk *clk)
-{
-       unsigned long flags;
-
-       if (!clk->ops->recalc)
-               return;
-
-       spin_lock_irqsave(&clock_lock, flags);
-       clk->rate = clk->ops->recalc(clk);
-       propagate_rate(clk);
-       spin_unlock_irqrestore(&clock_lock, flags);
-}
-EXPORT_SYMBOL_GPL(clk_recalc_rate);
-
 int clk_set_parent(struct clk *clk, struct clk *parent)
 {
        unsigned long flags;
index 1c41db4..426065b 100644 (file)
@@ -912,7 +912,7 @@ int __init arch_clk_init(void)
                clk_put(clk);
        }
 
-       clk_recalc_rate(&sh7722_r_clock); /* make sure rate gets propagated */
+       propagate_rate(&sh7722_r_clock); /* make sure rate gets propagated */
 
        return 0;
 }