changeset 67:49bc4e72c351

Initialize the field eccbytes in nand_oobinfo. Required to specify eccbytes for current MTD version, otherwise ECC will fail. Thanks to Artis Kugevics.
author luc
date Tue, 02 Aug 2005 20:17:55 +0100
parents a848101c9f9c
children ee0e4ad4020d
files yaffs_mtdif.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_mtdif.c
+++ b/yaffs_mtdif.c
@@ -28,6 +28,9 @@ const char *yaffs_mtdif_c_version = "$Id
 
 static struct nand_oobinfo yaffs_oobinfo = {
 	.useecc = 1,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,8))
+	.eccbytes = 6,
+#endif
 	.eccpos = {8, 9, 10, 13, 14, 15}
 };