Commit a57b1a9b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt

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

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 22de4e1f
...@@ -454,7 +454,7 @@ static int fsidiv_enable(struct clk *clk) ...@@ -454,7 +454,7 @@ static int fsidiv_enable(struct clk *clk)
value = __raw_readl(clk->mapping->base) >> 16; value = __raw_readl(clk->mapping->base) >> 16;
if (value < 2) if (value < 2)
return -ENOENT; return -EIO;
__raw_writel((value << 16) | 0x3, clk->mapping->base); __raw_writel((value << 16) | 0x3, clk->mapping->base);
...@@ -468,7 +468,7 @@ static int fsidiv_set_rate(struct clk *clk, ...@@ -468,7 +468,7 @@ static int fsidiv_set_rate(struct clk *clk,
idx = (clk->parent->rate / rate) & 0xffff; idx = (clk->parent->rate / rate) & 0xffff;
if (idx < 2) if (idx < 2)
return -ENOENT; return -EINVAL;
__raw_writel(idx << 16, clk->mapping->base); __raw_writel(idx << 16, clk->mapping->base);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment