mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-10-19 14:08:17 +02:00
yaffs: fix to detect MLC/TLC NAND flash
Signed-off-by: Vladimir Zahradnik <vladimir.zahradnik@gmail.com>
This commit is contained in:
parent
d8dde8c517
commit
f277f45bd6
@ -259,7 +259,7 @@ struct mtd_info * yaffs_get_mtd_device(dev_t sdev)
|
|||||||
return NULL; /* This isn't an mtd device */
|
return NULL; /* This isn't an mtd device */
|
||||||
|
|
||||||
/* Check it's NAND */
|
/* Check it's NAND */
|
||||||
if (mtd->type != MTD_NANDFLASH) {
|
if (mtd->type != MTD_NANDFLASH && mtd->type != MTD_MLCNANDFLASH) {
|
||||||
yaffs_trace(YAFFS_TRACE_ALWAYS,
|
yaffs_trace(YAFFS_TRACE_ALWAYS,
|
||||||
"yaffs: MTD device is not NAND it's type %d",
|
"yaffs: MTD device is not NAND it's type %d",
|
||||||
mtd->type);
|
mtd->type);
|
||||||
|
@ -2598,7 +2598,7 @@ static int yaffs_remount_fs(struct super_block *sb, int *flags, char *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check it's NAND */
|
/* Check it's NAND */
|
||||||
if (mtd->type != MTD_NANDFLASH) {
|
if (mtd->type != MTD_NANDFLASH && mtd->type != MTD_MLCNANDFLASH) {
|
||||||
yaffs_trace(YAFFS_TRACE_ALWAYS,
|
yaffs_trace(YAFFS_TRACE_ALWAYS,
|
||||||
"MTD device is not NAND it's type %d",
|
"MTD device is not NAND it's type %d",
|
||||||
mtd->type);
|
mtd->type);
|
||||||
|
Loading…
Reference in New Issue
Block a user