mtd: atmel_nand: using a stronger ECC is not dangerous
authorRichard Genoud <richard.genoud@gmail.com>
Tue, 30 Jul 2013 15:17:29 +0000 (17:17 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 20:00:49 +0000 (21:00 +0100)
We don't have to issue a warning when a stronger error correcting
capability is chosen.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/atmel_nand.c

index 7e50ed89e18a75f4551c5a3262f174d65f026670..08715106f925a79a71f9da148341feb2ca4d741e 100644 (file)
@@ -995,7 +995,7 @@ static int __init atmel_pmecc_nand_init_params(struct platform_device *pdev,
                return err_no;
        }
 
-       if (cap != host->pmecc_corr_cap ||
+       if (cap > host->pmecc_corr_cap ||
                        sector_size != host->pmecc_sector_size)
                dev_info(host->dev, "WARNING: Be Caution! Using different PMECC parameters from Nand ONFI ECC reqirement.\n");