]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/cfi_mtd.c
mtd: nand: mxs_nand: use calloc() to allocate and clear memory
[karo-tx-uboot.git] / drivers / mtd / cfi_mtd.c
index ac805ff1e9c7b91f87097d97c8f4e578a06fec3d..709a48642d6056ef66feafa6bb6af84e2df49387 100644 (file)
@@ -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;