|
|
@@ -227,11 +227,7 @@ static void fsl_ifc_run_command(struct mtd_info *mtd)
|
|
|
int sector_end = sector_start + chip->ecc.steps - 1;
|
|
|
__be32 *eccstat_regs;
|
|
|
|
|
|
- if (ctrl->version >= FSL_IFC_VERSION_2_0_0)
|
|
|
- eccstat_regs = ifc->ifc_nand.v2_nand_eccstat;
|
|
|
- else
|
|
|
- eccstat_regs = ifc->ifc_nand.v1_nand_eccstat;
|
|
|
-
|
|
|
+ eccstat_regs = ifc->ifc_nand.nand_eccstat;
|
|
|
eccstat = ifc_in32(&eccstat_regs[sector_start / 4]);
|
|
|
|
|
|
for (i = sector_start; i <= sector_end; i++) {
|