ARM: mach-shmobile: clock-sh7372: modify error code

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Kuninori Morimoto 2010-11-19 07:23:26 +00:00 committed by Paul Mundt
parent 22de4e1fe4
commit a57b1a9bdf
1 changed files with 2 additions and 2 deletions

View File

@ -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);
@ -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;