aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@openmoko.org>2009-03-09 21:02:30 +0000
committerAndy Green <agreen@octopus.localdomain>2009-03-09 21:02:30 +0000
commit63ca6e59552380186aeb75d9440147fe0f7601b4 (patch)
treedda54f44af08cbf14536bd2bde8370f52b3ed91e
parent0dbda87cb65eb4885d50889b28e62c35b39ca410 (diff)
Fix division in s3c64xx_roundrate_clksrc
s3c64xx_roundrate_clksrc got the rate vs. parent order wrong. Signed-off-by: Werner Almesberger <werner@openmoko.org>
-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 09924e3cb20..031c704f217 100644
--- a/arch/arm/plat-s3c64xx/s3c6400-clock.c
+++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c
@@ -359,7 +359,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;