提交 ed31b2df 编写于 作者: R Russell King 提交者: Russell King

[ARM] make U300 clk_set_rate() return a _real_ errno

Another stupid instance of "return -1"-ism.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 f7a9a4d7
......@@ -682,7 +682,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
} else {
printk(KERN_ERR "clock: Failed to set %s to %ld hz\n",
clk->name, rate);
return -1;
return -EINVAL;
}
}
EXPORT_SYMBOL(clk_set_rate);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册