[U-Boot] [PATCH 6/8]: Use lldiv to avoid references to __udvidi3 on (at least) ARM
Simon Kagstrom
simon.kagstrom at netinsight.net
Tue Jul 7 15:59:56 CEST 2009
Signed-off-by: Simon Kagstrom <simon.kagstrom at netinsight.net>
---
drivers/mtd/ubi/build.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 4f50b2d..d676573 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -536,7 +536,7 @@ static int io_init(struct ubi_device *ubi)
*/
ubi->peb_size = ubi->mtd->erasesize;
- ubi->peb_count = ubi->mtd->size / ubi->mtd->erasesize;
+ ubi->peb_count = lldiv(ubi->mtd->size, ubi->mtd->erasesize);
ubi->flash_size = ubi->mtd->size;
if (ubi->mtd->block_isbad && ubi->mtd->block_markbad)
--
1.6.0.4
More information about the U-Boot
mailing list