Skip to content

Commit

Permalink
ARM: mach-shmobile: clock-sh7372: remove status check from fsidiv_recalc
Browse files Browse the repository at this point in the history
clock status check is not needed in recalc function.
clk->rate will be 0 in clk_set_rate without this patch.

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 Apr 18, 2011
1 parent a1b49cb commit a7f8001
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/arm/mach-shmobile/clock-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,6 @@ static unsigned long fsidiv_recalc(struct clk *clk)

value = __raw_readl(clk->mapping->base);

if ((value & 0x3) != 0x3)
return 0;

value >>= 16;
if (value < 2)
return 0;
Expand Down

0 comments on commit a7f8001

Please sign in to comment.