aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c64xx
diff options
context:
space:
mode:
authorThomas Abraham <thomas.ab@samsung.com>2009-09-08 01:35:29 -0400
committerBen Dooks <ben-linux@fluff.org>2009-09-15 19:50:05 -0400
commit5e49bc4d9e982bbfdaf7d6cf8bd96e43bd9f7db6 (patch)
treec479f91ffdf9e82e6a8da6f0c64591b113a90bc0 /arch/arm/plat-s3c64xx
parent6d025ac2fcf9d736ee399efddae74a3362dfa7da (diff)
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: Thomas Abraham <thomas.ab@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c64xx')
-rw-r--r--arch/arm/plat-s3c64xx/s3c6400-clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c
index 54eef9326c21..9745852261e0 100644
--- a/arch/arm/plat-s3c64xx/s3c6400-clock.c
+++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c
@@ -345,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
345 if (rate > parent_rate) 345 if (rate > parent_rate)
346 rate = parent_rate; 346 rate = parent_rate;
347 else { 347 else {
348 div = rate / parent_rate; 348 div = parent_rate / rate;
349 349
350 if (div == 0) 350 if (div == 0)
351 div = 1; 351 div = 1;