summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/clock.c
diff options
context:
space:
mode:
authordmitry pervushin <dimka@nomadgs.com>2007-05-15 01:42:22 +0200
committerPaul Mundt <lethal@linux-sh.org>2007-05-21 07:34:45 +0200
commitdfbbbe92956b849a6704dbd5352348d6ba1165da (patch)
tree206daa54ab3567503c4cd7db9ecb85af31608bda /arch/sh/kernel/cpu/clock.c
parentsh: Wire up kdump crash kernel exec in die(). (diff)
downloadlinux-dfbbbe92956b849a6704dbd5352348d6ba1165da.tar.xz
linux-dfbbbe92956b849a6704dbd5352348d6ba1165da.zip
sh: Fix clock multiplier on SH7722.
This fixes up the master clock multiplier and initial rate propagation for the SH7722 clocks. Signed-off-by: dmitry pervushin <dimka@nomadgs.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/clock.c')
-rw-r--r--arch/sh/kernel/cpu/clock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c
index 014f318f5a05..63251549e9a8 100644
--- a/arch/sh/kernel/cpu/clock.c
+++ b/arch/sh/kernel/cpu/clock.c
@@ -278,6 +278,11 @@ arch_init_clk_ops(struct clk_ops **ops, int type)
{
}
+void __init __attribute__ ((weak))
+arch_clk_init(void)
+{
+}
+
static int show_clocks(char *buf, char **start, off_t off,
int len, int *eof, void *data)
{
@@ -314,6 +319,8 @@ int __init clk_init(void)
ret |= clk_register(clk);
}
+ arch_clk_init();
+
/* Kick the child clocks.. */
propagate_rate(&master_clk);
propagate_rate(&bus_clk);