X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_mtdif.c;h=eeb0d8aff6c382d5ed3447b9b63db76655c12be7;hp=2f418b9b6e36b82fd0b6e1603bf26eda80823ce8;hb=73e9f7fdbe045ba7d9f48fd1197fb6a4258b35d4;hpb=0f3e5663a6c6d1fe5b8c8abc1b44c7221c62f808 diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c index 2f418b9..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.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.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,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, };