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

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


Give a name to the nandemul2k MTD device.




-- Luc Van Oostenryck
-------------- next part --------------
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;
 }



More information about the yaffs mailing list