aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-12 06:29:04 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-12 06:29:04 -0400
commit9fe5ee0efb1b1d4a0939bc4252a8427e3337d96a (patch)
tree5a1d8b6e7d92a8f83ba94ea22feccef2461f1f9b /arch/sh/kernel/cpu/sh4a/clock-sh7785.c
parentf3f8290cb3fa4aa627321530bb85d5f35e487433 (diff)
sh: clkfwk: Use arch_clk_init() for on-chip clock registration.
CPUs registering on-chip clocks should be using arch_clk_init() with the new scheme so that the CPUs have the opportunity to establish the topology prior to the initial root clock rate propagation. This ensures that CPUs with on-chip clocks that use CLK_ENABLE_ON_INIT are properly enabled at the initial propagation time, without having to further poke the root clocks. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/clock-sh7785.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/clock-sh7785.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
index 4dcd1f6f0cbd..fa14f35bc116 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
@@ -134,7 +134,7 @@ static struct clk *sh7785_onchip_clocks[] = {
134 &sh7785_ram_clk, 134 &sh7785_ram_clk,
135}; 135};
136 136
137static int __init sh7785_clk_init(void) 137int __init arch_clk_init(void)
138{ 138{
139 struct clk *clk = clk_get(NULL, "master_clk"); 139 struct clk *clk = clk_get(NULL, "master_clk");
140 int i, ret = 0; 140 int i, ret = 0;
@@ -150,4 +150,3 @@ static int __init sh7785_clk_init(void)
150 150
151 return ret; 151 return ret;
152} 152}
153arch_initcall(sh7785_clk_init);