Skip to content

Commit

Permalink
ARM: mach-shmobile: clock-sh7372: remove fsidiv bogus disable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Paul Mundt committed Nov 24, 2010
1 parent ea49b16 commit e8ee13a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions arch/arm/mach-shmobile/clock-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
Expand Down

0 comments on commit e8ee13a

Please sign in to comment.