diff options
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index a2bb520286f8..33e0dbb0a96d 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -4027,7 +4027,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips) | |||
4027 | mtd->ecclayout = this->ecclayout; | 4027 | mtd->ecclayout = this->ecclayout; |
4028 | 4028 | ||
4029 | /* Fill in remaining MTD driver data */ | 4029 | /* Fill in remaining MTD driver data */ |
4030 | mtd->type = MTD_NANDFLASH; | 4030 | mtd->type = ONENAND_IS_MLC(this) ? MTD_MLCNANDFLASH : MTD_NANDFLASH; |
4031 | mtd->flags = MTD_CAP_NANDFLASH; | 4031 | mtd->flags = MTD_CAP_NANDFLASH; |
4032 | mtd->erase = onenand_erase; | 4032 | mtd->erase = onenand_erase; |
4033 | mtd->point = NULL; | 4033 | mtd->point = NULL; |