Remove CONFIG_YAFFS_USE_CHUNK_SIZE
[yaffs2.git] / yaffs_mtdif.c
index 2f418b9b6e36b82fd0b6e1603bf26eda80823ce8..13df3d98a8faa7bd4b71b641606f6b445e994786 100644 (file)
  *
  */
 
-const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.2 2005-07-19 20:41:59 charles Exp $";
-
-#ifdef CONFIG_YAFFS_MTD_ENABLED
+const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.6 2005-07-31 08:38:41 marty Exp $";
  
 #include "yportenv.h"
 
+#ifdef CONFIG_YAFFS_YAFFS1
+
 #include "yaffs_mtdif.h"
 
 #include "linux/mtd/mtd.h"
@@ -29,13 +29,13 @@ const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.2 2005-07-19 20:41:5
 #include "linux/mtd/nand.h"
 #endif
 
-struct nand_oobinfo yaffs_oobinfo = {
-       useecc: 1,
-       eccpos: {8, 9, 10, 13, 14, 15}
+static struct nand_oobinfo yaffs_oobinfo = {
+       .useecc = 1,
+       .eccpos = {8, 9, 10, 13, 14, 15}
 };
 
-struct nand_oobinfo yaffs_noeccinfo = {
-       useecc: 0,
+static struct nand_oobinfo yaffs_noeccinfo = {
+       .useecc = 0,
 };
 
 
@@ -159,5 +159,5 @@ int nandmtd_InitialiseNAND(yaffs_Device *dev)
        return YAFFS_OK;
 }
 
-#endif // CONFIG_YAFFS_MTD_ENABLED
+#endif // CONFIG_YAFFS_YAFFS1