diff options
author | Julia Lawall <julia@diku.dk> | 2008-08-02 17:14:21 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-08-02 18:45:18 +0100 |
commit | c8872b069c536976b81bccfc95dda945594bc504 (patch) | |
tree | ff131bea50915d6ba95638a51a309af39e32cb84 /drivers/mtd/ssfdc.c | |
parent | c4308d1076830a72e05eb3e5f58b9ed851229399 (diff) | |
download | kernel_samsung_tuna-c8872b069c536976b81bccfc95dda945594bc504.zip kernel_samsung_tuna-c8872b069c536976b81bccfc95dda945594bc504.tar.gz kernel_samsung_tuna-c8872b069c536976b81bccfc95dda945594bc504.tar.bz2 |
[MTD] Use DIV_ROUND_UP
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/ssfdc.c')
-rw-r--r-- | drivers/mtd/ssfdc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/ssfdc.c b/drivers/mtd/ssfdc.c index a5f3d60..33a5d6e 100644 --- a/drivers/mtd/ssfdc.c +++ b/drivers/mtd/ssfdc.c @@ -321,8 +321,7 @@ static void ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) DEBUG(MTD_DEBUG_LEVEL1, "SSFDC_RO: cis_block=%d,erase_size=%d,map_len=%d,n_zones=%d\n", ssfdc->cis_block, ssfdc->erase_size, ssfdc->map_len, - (ssfdc->map_len + MAX_PHYS_BLK_PER_ZONE - 1) / - MAX_PHYS_BLK_PER_ZONE); + DIV_ROUND_UP(ssfdc->map_len, MAX_PHYS_BLK_PER_ZONE)); /* Set geometry */ ssfdc->heads = 16; |