ARM: mach-shmobile: clock-sh7372: remove fsidiv bogus disable
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 19 Nov 2010 07:22:58 +0000 (07:22 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 24 Nov 2010 06:29:50 +0000 (15:29 +0900)
Current FSIDIV clock framework had bogus disable.
This patch remove it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/clock-sh7372.c

index 7db31e6c6bf2085908cb66ce669238488c5aa444..13226323e4e03eef1462fd6c626f7f15068b86bd 100644 (file)
@@ -453,10 +453,8 @@ static int fsidiv_enable(struct clk *clk)
        unsigned long value;
 
        value  = __raw_readl(clk->mapping->base) >> 16;
-       if (value < 2) {
-               fsidiv_disable(clk);
+       if (value < 2)
                return -ENOENT;
-       }
 
        __raw_writel((value << 16) | 0x3, clk->mapping->base);
 
@@ -468,11 +466,6 @@ static int fsidiv_set_rate(struct clk *clk,
 {
        int idx;
 
-       if (clk->parent->rate == rate) {
-               fsidiv_disable(clk);
-               return 0;
-       }
-
        idx = (clk->parent->rate / rate) & 0xffff;
        if (idx < 2)
                return -ENOENT;