diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-11 17:05:32 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-11 17:05:32 -0400 |
commit | 007e8363b656768fe3f59c180824ff704680bb25 (patch) | |
tree | d462845472e3d7f10066b4be64c3655ffac3160b | |
parent | f5c84cf50812c80133e64683d0500b2416d55cb3 (diff) |
sh: clkfwk: Kill off clk_recalc_rate().
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>
-rw-r--r-- | arch/sh/include/asm/clock.h | 1 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/clock.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 2 |
3 files changed, 1 insertions, 16 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h index fdb915608dbc..6a2f46333376 100644 --- a/arch/sh/include/asm/clock.h +++ b/arch/sh/include/asm/clock.h | |||
@@ -49,7 +49,6 @@ unsigned long followparent_recalc(struct clk *); | |||
49 | void recalculate_root_clocks(void); | 49 | void recalculate_root_clocks(void); |
50 | void propagate_rate(struct clk *); | 50 | void propagate_rate(struct clk *); |
51 | int clk_reparent(struct clk *child, struct clk *parent); | 51 | int clk_reparent(struct clk *child, struct clk *parent); |
52 | void clk_recalc_rate(struct clk *); | ||
53 | int clk_register(struct clk *); | 52 | int clk_register(struct clk *); |
54 | void clk_unregister(struct clk *); | 53 | void clk_unregister(struct clk *); |
55 | 54 | ||
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c index e3d1de8a46fd..7a356de99d7d 100644 --- a/arch/sh/kernel/cpu/clock.c +++ b/arch/sh/kernel/cpu/clock.c | |||
@@ -280,20 +280,6 @@ int clk_set_rate_ex(struct clk *clk, unsigned long rate, int algo_id) | |||
280 | } | 280 | } |
281 | EXPORT_SYMBOL_GPL(clk_set_rate_ex); | 281 | EXPORT_SYMBOL_GPL(clk_set_rate_ex); |
282 | 282 | ||
283 | void clk_recalc_rate(struct clk *clk) | ||
284 | { | ||
285 | unsigned long flags; | ||
286 | |||
287 | if (!clk->ops->recalc) | ||
288 | return; | ||
289 | |||
290 | spin_lock_irqsave(&clock_lock, flags); | ||
291 | clk->rate = clk->ops->recalc(clk); | ||
292 | propagate_rate(clk); | ||
293 | spin_unlock_irqrestore(&clock_lock, flags); | ||
294 | } | ||
295 | EXPORT_SYMBOL_GPL(clk_recalc_rate); | ||
296 | |||
297 | int clk_set_parent(struct clk *clk, struct clk *parent) | 283 | int clk_set_parent(struct clk *clk, struct clk *parent) |
298 | { | 284 | { |
299 | unsigned long flags; | 285 | unsigned long flags; |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c index 1c41db41de7e..426065b43269 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |||
@@ -912,7 +912,7 @@ int __init arch_clk_init(void) | |||
912 | clk_put(clk); | 912 | clk_put(clk); |
913 | } | 913 | } |
914 | 914 | ||
915 | clk_recalc_rate(&sh7722_r_clock); /* make sure rate gets propagated */ | 915 | propagate_rate(&sh7722_r_clock); /* make sure rate gets propagated */ |
916 | 916 | ||
917 | return 0; | 917 | return 0; |
918 | } | 918 | } |