X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs%2F.git;a=blobdiff_plain;f=yaffs_mtdif.c;h=6dede1a55259b29d30ac8bfff80a773da0475373;hp=0dfe12d7338c9ddeb64f5693252b67cbfa7b4ae6;hb=24e04c35b63138c14224754f9636e6b2a6915f3b;hpb=b0029bde1249255cf0e4771146ba8652da7ca883 diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c index 0dfe12d..6dede1a 100644 --- a/yaffs_mtdif.c +++ b/yaffs_mtdif.c @@ -13,7 +13,7 @@ * */ -const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.9 2003-04-08 19:53:44 charles Exp $"; +const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.10 2004-09-19 08:14:50 charles Exp $"; #ifdef CONFIG_YAFFS_MTD_ENABLED @@ -31,6 +31,10 @@ const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.9 2003-04-08 19:53:4 struct nand_oobinfo yaffs_oobinfo = { useecc: 1, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,8)) +// this is for versions of mtd nand driver in kernel 2.6.8 and later + eccbytes: 6, +#endif eccpos: {8, 9, 10, 13, 14, 15} };