diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-12 19:29:04 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-12 19:29:04 +0900 |
commit | 9fe5ee0efb1b1d4a0939bc4252a8427e3337d96a (patch) | |
tree | 5a1d8b6e7d92a8f83ba94ea22feccef2461f1f9b /arch/sh/kernel/cpu/sh4a/clock-shx3.c | |
parent | f3f8290cb3fa4aa627321530bb85d5f35e487433 (diff) | |
download | blackbird-op-linux-9fe5ee0efb1b1d4a0939bc4252a8427e3337d96a.tar.gz blackbird-op-linux-9fe5ee0efb1b1d4a0939bc4252a8427e3337d96a.zip |
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-shx3.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-shx3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-shx3.c b/arch/sh/kernel/cpu/sh4a/clock-shx3.c index 1eb149b0fe6e..c14553e3e13f 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/clock-shx3.c @@ -107,7 +107,7 @@ static struct clk *shx3_onchip_clocks[] = { &shx3_shyway_clk, }; -static int __init shx3_clk_init(void) +int __init arch_clk_init(void) { struct clk *clk = clk_get(NULL, "master_clk"); int i, ret = 0; @@ -123,4 +123,3 @@ static int __init shx3_clk_init(void) return ret; } -arch_initcall(shx3_clk_init); |