sh: clkfwk: Rework legacy CPG clock handling.
[pandora-kernel.git] / arch / sh / kernel / cpu / sh4a / clock-shx3.c
index c14553e..23c27d3 100644 (file)
@@ -109,9 +109,12 @@ static struct clk *shx3_onchip_clocks[] = {
 
 int __init arch_clk_init(void)
 {
-       struct clk *clk = clk_get(NULL, "master_clk");
+       struct clk *clk;
        int i, ret = 0;
 
+       cpg_clk_init();
+
+       clk = clk_get(NULL, "master_clk");
        for (i = 0; i < ARRAY_SIZE(shx3_onchip_clocks); i++) {
                struct clk *clkp = shx3_onchip_clocks[i];