提交 5e49bc4d 编写于 作者: T Thomas Abraham 提交者: Ben Dooks

ARM: S3C64XX: Fix divider value calculation in s3c64xx_roundrate_clksrc

In s3c64xx_roundrate_clksrc function, the calculation is wrong. This
patch fixes this calculation.
Signed-off-by: NThomas Abraham <thomas.ab@samsung.com>
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
上级 6d025ac2
......@@ -345,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
if (rate > parent_rate)
rate = parent_rate;
else {
div = rate / parent_rate;
div = parent_rate / rate;
if (div == 0)
div = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册