diff mbox

[1/6] ARM: mach-shmobile: clock-sh7372: remove fsidiv bogus disable

Message ID w3pbp5l4w1a.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State Accepted
Commit e8ee13a818db4954517cea7da6e7c15b9656eb00
Delegated to: Paul Mundt
Headers show

Commit Message

Kuninori Morimoto Nov. 19, 2010, 7:22 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-shmobile/clock-sh7372.c b/arch/arm/mach-shmobile/clock-sh7372.c
index 7db31e6..1322632 100644
--- a/arch/arm/mach-shmobile/clock-sh7372.c
+++ b/arch/arm/mach-shmobile/clock-sh7372.c
@@ -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;