Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e49bc4d authored by Thomas Abraham's avatar Thomas Abraham Committed by Ben Dooks
Browse files

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: default avatarThomas Abraham <thomas.ab@samsung.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 6d025ac2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -345,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
	if (rate > parent_rate)
	if (rate > parent_rate)
		rate = parent_rate;
		rate = parent_rate;
	else {
	else {
		div = rate / parent_rate;
		div = parent_rate / rate;


		if (div == 0)
		if (div == 0)
			div = 1;
			div = 1;