Skip to content

Commit

Permalink
ARM: S3C64XX: Fix divider value calculation in s3c64xx_roundrate_clksrc
Browse files Browse the repository at this point in the history
In s3c64xx_roundrate_clksrc function, the calculation is wrong. This
patch fixes this calculation.

Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Thomas Abraham authored and Ben Dooks committed Sep 15, 2009
1 parent 6d025ac commit 5e49bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-s3c64xx/s3c6400-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5e49bc4

Please sign in to comment.