[Yaffs] [PATCH YAFFS2 03/15] read-super-MTD-if-CONFIG_YAFFS-or-YAFFS2_MTD_ENABLED

Luc Van Oostenryck luc.vanoostenryck at looxix.net
Thu Jul 28 00:00:02 BST 2005


CONFIG_YAFFS2_MTD_ENABLED must also enable the MTD section of yaffs_internal_read_super().

The MTD part in yaffs_internal_read_super() was compiled in only if
CONFIG_YAFFS_MTD_ENABLED was set.
Now do it if CONFIG_YAFFS_MTD_ENABLED or CONFIG_YAFFS2_MTD_ENABLED are set.


-- Luc Van Oostenryck
-------------- next part --------------
diff --git a/fs/yaffs2/yaffs_fs.c b/fs/yaffs2/yaffs_fs.c
--- a/fs/yaffs2/yaffs_fs.c
+++ b/fs/yaffs2/yaffs_fs.c
@@ -1415,7 +1415,7 @@ static struct super_block *yaffs_interna
 	}
 	else
 	{	
-#ifdef CONFIG_YAFFS_MTD_ENABLED
+#if defined(CONFIG_YAFFS_MTD_ENABLED) || defined(CONFIG_YAFFS2_MTD_ENABLED)
 		struct mtd_info *mtd;
 		
 		T(YAFFS_TRACE_ALWAYS,("yaffs: Attempting MTD mount on %u.%u, \"%s\"\n",



More information about the yaffs mailing list