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

Startseite
Anhänge:
Nachricht
+ (text/plain)
+ 03-read-super-MTD-if-CONFIG_YAFFS-or-YAFFS2_MTD_ENABLED.diff (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Luc Van Oostenryck
Datum:  
To: yaffs
Alte Treads: [Yaffs] [PATCH YAFFS2 0/15] Pending patches.
Betreff: [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",