summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2014-10-31 11:29:45 +0100
committerHeiko Schocher <hs@denx.de>2014-11-19 07:54:04 +0100
commit65e5cb54d017d60ec9d5de394715e5c95765f836 (patch)
tree6e0a0b2ec4857b8b79cc155b36b6fee2cb291678 /drivers/mtd
parentf196044dfd64745a163773c6c746f9e149ace127 (diff)
downloadu-boot-imx-65e5cb54d017d60ec9d5de394715e5c95765f836.zip
u-boot-imx-65e5cb54d017d60ec9d5de394715e5c95765f836.tar.gz
u-boot-imx-65e5cb54d017d60ec9d5de394715e5c95765f836.tar.bz2
mtd, cfi, ubi: add missing writebufsize initialization
ff94bc40af3481d47546595ba73c136de6af6929 "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: Heiko Schocher <hs@denx.de> Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com> Acked-by: Stefan Roese <sr@denx.de> Acked-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/cfi_mtd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/cfi_mtd.c b/drivers/mtd/cfi_mtd.c
index ac805ff..709a486 100644
--- a/drivers/mtd/cfi_mtd.c
+++ b/drivers/mtd/cfi_mtd.c
@@ -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;