Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / generic / files / fs / yaffs2 / yaffs_mtdif.c
index 7c01461ab93de21de9e5e272ec5bcfd58504255c..d15c6606380e31550b0db901e65bf94ba0445fcd 100644 (file)
@@ -259,7 +259,7 @@ struct mtd_info * yaffs_get_mtd_device(dev_t sdev)
                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);