Merge branch 'master' of git://git.denx.de/u-boot-ubi
This commit is contained in:
commit
37572cde7f
@ -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 = mtd_div_by_eb(ubi->mtd->size, ubi->mtd);
|
||||
ubi->flash_size = ubi->mtd->size;
|
||||
|
||||
if (ubi->mtd->block_isbad && ubi->mtd->block_markbad)
|
||||
|
Loading…
Reference in New Issue
Block a user