aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 55c80efb3081..848884473229 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3785,7 +3785,7 @@ int nand_scan_tail(struct mtd_info *mtd)
3785 chip->options |= NAND_SUBPAGE_READ; 3785 chip->options |= NAND_SUBPAGE_READ;
3786 3786
3787 /* Fill in remaining MTD driver data */ 3787 /* Fill in remaining MTD driver data */
3788 mtd->type = MTD_NANDFLASH; 3788 mtd->type = nand_is_slc(chip) ? MTD_NANDFLASH : MTD_MLCNANDFLASH;
3789 mtd->flags = (chip->options & NAND_ROM) ? MTD_CAP_ROM : 3789 mtd->flags = (chip->options & NAND_ROM) ? MTD_CAP_ROM :
3790 MTD_CAP_NANDFLASH; 3790 MTD_CAP_NANDFLASH;
3791 mtd->_erase = nand_erase; 3791 mtd->_erase = nand_erase;