diff options
author | Tom Rini <trini@ti.com> | 2013-12-05 14:48:39 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-12-13 09:16:20 -0500 |
commit | 6b44adc22e6f4cc4fe8e1bb6c69b6bf8ec8da533 (patch) | |
tree | 13a49070f11ef52c23b4ff96b2fda98564aec025 /fs/yaffs2/yaffs_uboot_glue.c | |
parent | 18e8672449d812ba7791f166245bc45eab30dbf9 (diff) | |
download | u-boot-6b44adc22e6f4cc4fe8e1bb6c69b6bf8ec8da533.tar.gz |
yaffs2: Use lldiv for 64bit division
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'fs/yaffs2/yaffs_uboot_glue.c')
-rw-r--r-- | fs/yaffs2/yaffs_uboot_glue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/yaffs2/yaffs_uboot_glue.c b/fs/yaffs2/yaffs_uboot_glue.c index e113e4039e..50000a135b 100644 --- a/fs/yaffs2/yaffs_uboot_glue.c +++ b/fs/yaffs2/yaffs_uboot_glue.c @@ -20,6 +20,7 @@ */ #include <common.h> +#include <div64.h> #include <config.h> #include "nand.h" @@ -184,7 +185,7 @@ void cmd_yaffs_devconfig(char *_mp, int flash_dev, } if (end_block == 0) - end_block = mtd->size / mtd->erasesize - 1; + end_block = lldiv(mtd->size, mtd->erasesize - 1); if (end_block < start_block) { printf("Bad start/end\n"); |