projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MTD] [NAND] S3C2410: Use DIV_ROUND_UP
[deliverable/linux.git]
/
drivers
/
mtd
/
nand
/
s3c2410.c
diff --git
a/drivers/mtd/nand/s3c2410.c
b/drivers/mtd/nand/s3c2410.c
index 8a7f960a0df5caa4c322c58559e512f112da9238..89b79051cc6838195a72bc9acf39e19139dd4fd0 100644
(file)
--- a/
drivers/mtd/nand/s3c2410.c
+++ b/
drivers/mtd/nand/s3c2410.c
@@
-180,8
+180,7
@@
static int s3c_nand_calc_rate(int wanted, unsigned long clk, int max)
{
int result;
- result = (wanted * clk) / NS_IN_KHZ;
- result++;
+ result = DIV_ROUND_UP((wanted * clk), NS_IN_KHZ);
pr_debug("result %d from %ld, %d\n", result, clk, wanted);
This page took
0.026103 seconds
and
5
git commands to generate.