Signed-off-by: Vladimir Zahradnik <vladimir.zahradnik@gmail.com>
return NULL; /* This isn't an mtd device */
/* Check it's NAND */
- if (mtd->type != MTD_NANDFLASH) {
+ if (mtd->type != MTD_NANDFLASH && mtd->type != MTD_MLCNANDFLASH) {
yaffs_trace(YAFFS_TRACE_ALWAYS,
"yaffs: MTD device is not NAND it's type %d",
mtd->type);
}
/* Check it's NAND */
- if (mtd->type != MTD_NANDFLASH) {
+ if (mtd->type != MTD_NANDFLASH && mtd->type != MTD_MLCNANDFLASH) {
yaffs_trace(YAFFS_TRACE_ALWAYS,
"MTD device is not NAND it's type %d",
mtd->type);