|
@@ -237,6 +237,7 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr)
|
|
|
this->ecc.hwctl = cs_enable_hwecc;
|
|
|
this->ecc.calculate = cs_calculate_ecc;
|
|
|
this->ecc.correct = nand_correct_data;
|
|
|
+ this->ecc.strength = 1;
|
|
|
|
|
|
/* Enable the following for a flash based bad block table */
|
|
|
this->bbt_options = NAND_BBT_USE_FLASH;
|
|
@@ -247,8 +248,6 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr)
|
|
|
goto out_ior;
|
|
|
}
|
|
|
|
|
|
- this->ecc.strength = 1;
|
|
|
-
|
|
|
new_mtd->name = kasprintf(GFP_KERNEL, "cs553x_nand_cs%d", cs);
|
|
|
|
|
|
cs553x_mtd[cs] = new_mtd;
|