summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorThomas Abraham <thomas.ab@samsung.com>2009-09-08 07:35:29 +0200
committerBen Dooks <ben-linux@fluff.org>2009-09-16 01:50:05 +0200
commit5e49bc4d9e982bbfdaf7d6cf8bd96e43bd9f7db6 (patch)
treec479f91ffdf9e82e6a8da6f0c64591b113a90bc0 /arch/arm
parentARM: S3C6410: update clk->parent when setting clock source (diff)
downloadlinux-5e49bc4d9e982bbfdaf7d6cf8bd96e43bd9f7db6.tar.xz
linux-5e49bc4d9e982bbfdaf7d6cf8bd96e43bd9f7db6.zip
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')
-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,
if (rate > parent_rate)
rate = parent_rate;
else {
- div = rate / parent_rate;
+ div = parent_rate / rate;
if (div == 0)
div = 1;