diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2010-11-19 02:22:58 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-24 01:29:50 -0500 |
commit | e8ee13a818db4954517cea7da6e7c15b9656eb00 (patch) | |
tree | ee32ff1ae74411bc7475b07ab7c253462da43d60 /arch/arm | |
parent | ea49b1669b7b405e0eb0bf877c7b7fb01f8dd19b (diff) |
ARM: mach-shmobile: clock-sh7372: remove fsidiv bogus disable
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-shmobile/clock-sh7372.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-shmobile/clock-sh7372.c b/arch/arm/mach-shmobile/clock-sh7372.c index 7db31e6c6bf2..13226323e4e0 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) | |||
453 | unsigned long value; | 453 | unsigned long value; |
454 | 454 | ||
455 | value = __raw_readl(clk->mapping->base) >> 16; | 455 | value = __raw_readl(clk->mapping->base) >> 16; |
456 | if (value < 2) { | 456 | if (value < 2) |
457 | fsidiv_disable(clk); | ||
458 | return -ENOENT; | 457 | return -ENOENT; |
459 | } | ||
460 | 458 | ||
461 | __raw_writel((value << 16) | 0x3, clk->mapping->base); | 459 | __raw_writel((value << 16) | 0x3, clk->mapping->base); |
462 | 460 | ||
@@ -468,11 +466,6 @@ static int fsidiv_set_rate(struct clk *clk, | |||
468 | { | 466 | { |
469 | int idx; | 467 | int idx; |
470 | 468 | ||
471 | if (clk->parent->rate == rate) { | ||
472 | fsidiv_disable(clk); | ||
473 | return 0; | ||
474 | } | ||
475 | |||
476 | idx = (clk->parent->rate / rate) & 0xffff; | 469 | idx = (clk->parent->rate / rate) & 0xffff; |
477 | if (idx < 2) | 470 | if (idx < 2) |
478 | return -ENOENT; | 471 | return -ENOENT; |