diff options
author | Rohit Hassan Sathyanarayan <rohit.hs@samsung.com> | 2010-09-27 06:32:10 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-24 19:50:28 -0400 |
commit | c76268021e04e4313cd3a32242826f6a93388e2d (patch) | |
tree | 8603a54cd64bb1d5435956ee327f2dddd09d0cb4 /drivers/mtd | |
parent | 17a22826bbfeed27b10c0d8274fc19d5fc3951c3 (diff) |
mtd: MLC device check in OneNAND driver
The MLC NAND Flash differs from the SLC NAND flash in functioning
and the cell structure. Therefore we are considering it as a
different Flash type.
Signed-off-by: Rohit H.S <rohit.hs@samsung.com>
Signed-off-by: Raghav Gupta <gupta.raghav@samsung.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-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; |