]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/mtd/cfi_mtd.c
SystemACE: Remove
[people/ms/u-boot.git] / drivers / mtd / cfi_mtd.c
index ac805ff1e9c7b91f87097d97c8f4e578a06fec3d..3c061736a29cbeaed707b59744b0854544652eb0 100644 (file)
@@ -10,7 +10,7 @@
 #include <flash.h>
 #include <malloc.h>
 
-#include <asm/errno.h>
+#include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/concat.h>
 #include <mtd/cfi_flash.h>
@@ -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;