提交 a57b1a9b 编写于 作者: K Kuninori Morimoto 提交者: Paul Mundt

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

Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 22de4e1f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册