[Yaffs] [PATCH YAFFS2 09/15] add-a-name-to-nandemul2k

Top Page
Attachments:
Message as email
+ (text/plain)
+ 09-add-a-name-to-nandemul2k.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 09/15] add-a-name-to-nandemul2k
Give a name to the nandemul2k MTD device.




-- Luc Van Oostenryck
diff --git a/fs/yaffs2/mtdemul/nandemul2k.c b/fs/yaffs2/mtdemul/nandemul2k.c
--- a/fs/yaffs2/mtdemul/nandemul2k.c
+++ b/fs/yaffs2/mtdemul/nandemul2k.c
@@ -630,6 +630,8 @@ int nand_scan (struct mtd_info *mtd,int 
     mtd->suspend = NULL;
     mtd->resume = NULL;


+    mtd->name = "NANDemul2k";
+
     /* Return happy */
     return 0;
 }