summaryrefslogtreecommitdiff
path: root/arch/arm/plat-s3c64xx/s3c6400-clock.c
diff options
context:
space:
mode:
authorThomas Abraham <thomas.ab@samsung.com>2009-09-08 05:35:29 (GMT)
committerBen Dooks <ben-linux@fluff.org>2009-09-15 23:50:05 (GMT)
commit5e49bc4d9e982bbfdaf7d6cf8bd96e43bd9f7db6 (patch)
treec479f91ffdf9e82e6a8da6f0c64591b113a90bc0 /arch/arm/plat-s3c64xx/s3c6400-clock.c
parent6d025ac2fcf9d736ee399efddae74a3362dfa7da (diff)
downloadlinux-fsl-qoriq-5e49bc4d9e982bbfdaf7d6cf8bd96e43bd9f7db6.tar.xz
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/s3c6400-clock.c')
-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 54eef93..9745852 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;