Skip to content
Snippets Groups Projects
Commit 65e5cb54 authored by Heiko Schocher's avatar Heiko Schocher
Browse files

mtd, cfi, ubi: add missing writebufsize initialization


ff94bc40 "mtd, ubi, ubifs: resync with Linux-3.14"
introduced the writebufsize field in struct mtd_info, which
is not initialized in the cfi_flash driver, which leads in
not working ubi on cfi flashes. Fix it

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Reported-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
Acked-by: default avatarStefan Roese <sr@denx.de>
Acked-by: default avatarAndrew Ruder <andrew.ruder@elecsyscorp.com>
parent f196044d
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,7 @@ int cfi_mtd_init(void)
mtd->flags = MTD_CAP_NORFLASH;
mtd->size = fi->size;
mtd->writesize = 1;
mtd->writebufsize = mtd->writesize;
mtd->_erase = cfi_mtd_erase;
mtd->_read = cfi_mtd_read;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment