diff options
Diffstat (limited to 'drivers/mtd/nand/denali.c')
-rw-r--r-- | drivers/mtd/nand/denali.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 0c8bb6bf8424..2ed2bb33a6e7 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c | |||
@@ -1520,7 +1520,7 @@ int denali_init(struct denali_nand_info *denali) | |||
1520 | * so just let controller do 15bit ECC for MLC and 8bit ECC for | 1520 | * so just let controller do 15bit ECC for MLC and 8bit ECC for |
1521 | * SLC if possible. | 1521 | * SLC if possible. |
1522 | * */ | 1522 | * */ |
1523 | if (denali->nand.cellinfo & 0xc && | 1523 | if (denali->nand.cellinfo & NAND_CI_CELLTYPE_MSK && |
1524 | (denali->mtd.oobsize > (denali->bbtskipbytes + | 1524 | (denali->mtd.oobsize > (denali->bbtskipbytes + |
1525 | ECC_15BITS * (denali->mtd.writesize / | 1525 | ECC_15BITS * (denali->mtd.writesize / |
1526 | ECC_SECTOR_SIZE)))) { | 1526 | ECC_SECTOR_SIZE)))) { |