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

Top Page
Attachments:
Message as email
+ (text/plain)
+ 03-read-super-MTD-if-CONFIG_YAFFS-or-YAFFS2_MTD_ENABLED.diff (text/plain)
Delete this message
Reply to this message
Author: Luc Van Oostenryck
Date:  
To: yaffs
Old-Topics: [Yaffs] [PATCH YAFFS2 0/15] Pending patches.
Subject: [Yaffs] [PATCH YAFFS2 03/15] read-super-MTD-if-CONFIG_YAFFS-or-YAFFS2_MTD_ENABLED
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",