diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-13 04:38:11 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-13 04:38:11 -0400 |
commit | 253b0887b3736160feac9ccdcf146a2073e41463 (patch) | |
tree | fb7e0776555cff9275760293c10c13e8c8f365fe /arch/sh/kernel/cpu/sh4/clock-sh4-202.c | |
parent | 100890c55e326a9acb4429593c5ad2012c194564 (diff) |
sh: clkfwk: Rework legacy CPG clock handling.
This moves out the old legacy CPG clocks to their own file, and converts
over the existing users. With these clocks going away and each CPU
dealing with them on their own, CPUs can gradually move over to the new
interface.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/clock-sh4-202.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/clock-sh4-202.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh4/clock-sh4-202.c b/arch/sh/kernel/cpu/sh4/clock-sh4-202.c index a72dc326d0b3..21421e34e7d5 100644 --- a/arch/sh/kernel/cpu/sh4/clock-sh4-202.c +++ b/arch/sh/kernel/cpu/sh4/clock-sh4-202.c | |||
@@ -152,9 +152,12 @@ static struct clk *sh4202_onchip_clocks[] = { | |||
152 | 152 | ||
153 | int __init arch_clk_init(void) | 153 | int __init arch_clk_init(void) |
154 | { | 154 | { |
155 | struct clk *clk = clk_get(NULL, "master_clk"); | 155 | struct clk *clk; |
156 | int i, ret = 0; | 156 | int i, ret = 0; |
157 | 157 | ||
158 | cpg_clk_init(); | ||
159 | |||
160 | clk = clk_get(NULL, "master_clk"); | ||
158 | for (i = 0; i < ARRAY_SIZE(sh4202_onchip_clocks); i++) { | 161 | for (i = 0; i < ARRAY_SIZE(sh4202_onchip_clocks); i++) { |
159 | struct clk *clkp = sh4202_onchip_clocks[i]; | 162 | struct clk *clkp = sh4202_onchip_clocks[i]; |
160 | 163 | ||