]> git.openpandora.org Git - pandora-kernel.git/commitdiff
sh: Fix clock multiplier on SH7722.
authordmitry pervushin <dimka@nomadgs.com>
Mon, 14 May 2007 23:42:22 +0000 (08:42 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 21 May 2007 05:34:45 +0000 (14:34 +0900)
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>
arch/sh/kernel/cpu/clock.c
arch/sh/kernel/cpu/sh4a/clock-sh7722.c

index 014f318f5a0515d648c745a14a04c196e6171ef6..63251549e9a8b2dfddf1308f6ce13374cf8f9942 100644 (file)
@@ -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);