From 63ca6e59552380186aeb75d9440147fe0f7601b4 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 9 Mar 2009 21:02:30 +0000 Subject: Fix division in s3c64xx_roundrate_clksrc s3c64xx_roundrate_clksrc got the rate vs. parent order wrong. Signed-off-by: Werner Almesberger --- arch/arm/plat-s3c64xx/s3c6400-clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') 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; -- cgit v1.2.3