From: charles Date: Tue, 26 Nov 2002 01:39:53 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://yaffs.net/gitweb/?p=yaffs%2F.git;a=commitdiff_plain;h=4b9eaacb2bce22f5600672ce2ff293899e65e1d6 *** empty log message *** --- diff --git a/yaffs_fs.c b/yaffs_fs.c index da3b7f9..81b8ccf 100644 --- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -27,7 +27,7 @@ */ -const char *yaffs_fs_c_version = "$Id: yaffs_fs.c,v 1.20 2002-11-26 01:15:37 charles Exp $"; +const char *yaffs_fs_c_version = "$Id: yaffs_fs.c,v 1.21 2002-11-26 01:39:53 charles Exp $"; extern const char *yaffs_guts_c_version; @@ -1175,8 +1175,12 @@ static struct super_block *yaffs_internal_read_super(int useRam, struct super_bl if(!mtd->erase || !mtd->read || !mtd->write || +#ifndef CONFIG_YAFFS_USE_OLD_MTD + !mtd->write_ecc || + !mtd->read_ecc || +#endif !mtd->read_oob || - !mtd->write_oob) + !mtd->write_oob ) { printk(KERN_DEBUG "yaffs: MTD device does not support required functions\n"); return NULL;