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/clock.c | |
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/clock.c')
-rw-r--r-- | arch/sh/kernel/cpu/clock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c index b022affb44cd..17f6c078e851 100644 --- a/arch/sh/kernel/cpu/clock.c +++ b/arch/sh/kernel/cpu/clock.c | |||
@@ -90,6 +90,12 @@ static void propagate_rate(struct clk *clk) | |||
90 | } | 90 | } |
91 | } | 91 | } |
92 | 92 | ||
93 | /* Used for clocks that always have same value as the parent clock */ | ||
94 | unsigned long followparent_recalc(struct clk *clk) | ||
95 | { | ||
96 | return clk->parent->rate; | ||
97 | } | ||
98 | |||
93 | static void __clk_init(struct clk *clk) | 99 | static void __clk_init(struct clk *clk) |
94 | { | 100 | { |
95 | /* | 101 | /* |