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>
This commit is contained in:
Paul Mundt
2009-05-12 19:29:04 +09:00
parent f3f8290cb3
commit 9fe5ee0efb
7 changed files with 7 additions and 19 deletions

View File

@@ -134,7 +134,7 @@ static struct clk *sh7785_onchip_clocks[] = {
&sh7785_ram_clk,
};
static int __init sh7785_clk_init(void)
int __init arch_clk_init(void)
{
struct clk *clk = clk_get(NULL, "master_clk");
int i, ret = 0;
@@ -150,4 +150,3 @@ static int __init sh7785_clk_init(void)
return ret;
}
arch_initcall(sh7785_clk_init);