Skip to content

Commit

Permalink
ARM: mach-shmobile: clock-sh7372: modify error code
Browse files Browse the repository at this point in the history
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 22de4e1 commit a57b1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-shmobile/clock-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ static int fsidiv_enable(struct clk *clk)

value = __raw_readl(clk->mapping->base) >> 16;
if (value < 2)
return -ENOENT;
return -EIO;

__raw_writel((value << 16) | 0x3, clk->mapping->base);

Expand All @@ -468,7 +468,7 @@ static int fsidiv_set_rate(struct clk *clk,

idx = (clk->parent->rate / rate) & 0xffff;
if (idx < 2)
return -ENOENT;
return -EINVAL;

__raw_writel(idx << 16, clk->mapping->base);
return 0;
Expand Down

0 comments on commit a57b1a9

Please sign in to comment.