[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-140-g23b564c
Andy Green
agreen at octopus.localdomain
Mon Jun 8 17:29:31 UTC 2009
The following commit has been merged in the andy-tracking branch:
commit 63ca6e59552380186aeb75d9440147fe0f7601b4
Author: Werner Almesberger <werner at openmoko.org>
Date: Mon Mar 9 21:02:30 2009 +0000
Fix division in s3c64xx_roundrate_clksrc
s3c64xx_roundrate_clksrc got the rate vs. parent order wrong.
Signed-off-by: Werner Almesberger <werner at openmoko.org>
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c
index 09924e3..031c704 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;
--
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko
More information about the pkg-fso-commits
mailing list