X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yaffs_mtdif.c;h=eeb0d8aff6c382d5ed3447b9b63db76655c12be7;hb=059e96a41fdcd5a2162c281b43047a1656cf53df;hp=8260f031fdea482ccd4b899a62481f86996c4896;hpb=1c4056c8ab9d9a090280567b2249f4bdd3412454;p=yaffs2.git diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c index 8260f03..eeb0d8a 100644 --- a/yaffs_mtdif.c +++ b/yaffs_mtdif.c @@ -13,12 +13,12 @@ * */ -const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.3 2005-07-31 04:05:14 marty Exp $"; - -#ifdef CONFIG_YAFFS_MTD_ENABLED +const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.5 2005-07-31 06:47:12 marty Exp $"; #include "yportenv.h" +#ifdef CONFIG_YAFFS_MTD_ENABLED + #include "yaffs_mtdif.h" #include "linux/mtd/mtd.h" @@ -29,12 +29,12 @@ const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.3 2005-07-31 04:05:1 #include "linux/mtd/nand.h" #endif -struct nand_oobinfo yaffs_oobinfo = { +static struct nand_oobinfo yaffs_oobinfo = { .useecc = 1, .eccpos = {8, 9, 10, 13, 14, 15} }; -struct nand_oobinfo yaffs_noeccinfo = { +static struct nand_oobinfo yaffs_noeccinfo = { .useecc = 0, };