Commit 5e49bc4d authored by Thomas Abraham's avatar Thomas Abraham Committed by 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: default avatarThomas Abraham <thomas.ab@samsung.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 6d025ac2
...@@ -345,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk, ...@@ -345,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
if (rate > parent_rate) if (rate > parent_rate)
rate = parent_rate; rate = parent_rate;
else { else {
div = rate / parent_rate; div = parent_rate / rate;
if (div == 0) if (div == 0)
div = 1; div = 1;
......
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