diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-11 14:50:44 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-11 14:50:44 -0400 |
commit | a02cb230bb4fca04f091746c593de720a0e3a94a (patch) | |
tree | b492976b4a4ee701c93fa12882510ddd41e2a26c /arch/sh/kernel/cpu/sh2 | |
parent | b68d8201433a91cabbcbeae48b53d8c1c426433a (diff) |
sh: clkfwk: Add a followparent_recalc() helper.
This adds a followparent_recalc() helper for clocks that just follow the
parent's rate. Switch over the few CPUs that use this scheme for some of
their clocks.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh2')
-rw-r--r-- | arch/sh/kernel/cpu/sh2/clock-sh7619.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh2/clock-sh7619.c b/arch/sh/kernel/cpu/sh2/clock-sh7619.c index 26799139aa7..4fe863170e3 100644 --- a/arch/sh/kernel/cpu/sh2/clock-sh7619.c +++ b/arch/sh/kernel/cpu/sh2/clock-sh7619.c | |||
@@ -57,13 +57,8 @@ static struct clk_ops sh7619_bus_clk_ops = { | |||
57 | .recalc = bus_clk_recalc, | 57 | .recalc = bus_clk_recalc, |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static unsigned long cpu_clk_recalc(struct clk *clk) | ||
61 | { | ||
62 | return clk->parent->rate; | ||
63 | } | ||
64 | |||
65 | static struct clk_ops sh7619_cpu_clk_ops = { | 60 | static struct clk_ops sh7619_cpu_clk_ops = { |
66 | .recalc = cpu_clk_recalc, | 61 | .recalc = followparent_recalc, |
67 | }; | 62 | }; |
68 | 63 | ||
69 | static struct clk_ops *sh7619_clk_ops[] = { | 64 | static struct clk_ops *sh7619_clk_ops[] = { |