summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-12 03:50:44 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-05-12 03:50:44 +0900
commita02cb230bb4fca04f091746c593de720a0e3a94a (patch)
treeb492976b4a4ee701c93fa12882510ddd41e2a26c /arch/sh/kernel/cpu/sh4a/clock-sh7722.c
parentb68d8201433a91cabbcbeae48b53d8c1c426433a (diff)
downloadtalos-op-linux-a02cb230bb4fca04f091746c593de720a0e3a94a.tar.gz
talos-op-linux-a02cb230bb4fca04f091746c593de720a0e3a94a.zip
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/sh4a/clock-sh7722.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/clock-sh7722.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
index 5b1427f1ed41..4bdae84aa6b0 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c
@@ -646,15 +646,10 @@ static void sh7722_mstpcr_disable(struct clk *clk)
sh7722_mstpcr_start_stop(clk, 0);
}
-static unsigned long sh7722_mstpcr_recalc(struct clk *clk)
-{
- return clk->parent->rate;
-}
-
static struct clk_ops sh7722_mstpcr_clk_ops = {
.enable = sh7722_mstpcr_enable,
.disable = sh7722_mstpcr_disable,
- .recalc = sh7722_mstpcr_recalc,
+ .recalc = followparent_recalc,
};
#define MSTPCR(_name, _parent, regnr, bitnr) \
OpenPOWER on IntegriCloud