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
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",