projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d025ac
)
ARM: S3C64XX: Fix divider value calculation in s3c64xx_roundrate_clksrc
author
Thomas Abraham
<thomas.ab@samsung.com>
Tue, 8 Sep 2009 05:35:29 +0000
(14:35 +0900)
committer
Ben Dooks
<ben-linux@fluff.org>
Tue, 15 Sep 2009 23:50:05 +0000
(
00:50
+0100)
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>
arch/arm/plat-s3c64xx/s3c6400-clock.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/plat-s3c64xx/s3c6400-clock.c
b/arch/arm/plat-s3c64xx/s3c6400-clock.c
index 54eef9326c21f1054569f2b6fcf52ecbf7360128..9745852261e03a7c149bbc46b83001607a2a9d7e 100644
(file)
--- 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;