From: Richard Genoud Date: Tue, 30 Jul 2013 15:17:29 +0000 (+0200) Subject: mtd: atmel_nand: using a stronger ECC is not dangerous X-Git-Tag: MMI-PSA29.97-13-9~13677^2~106 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f666d6495a4350ebe4ebb8c071b290f9f49514bf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mtd: atmel_nand: using a stronger ECC is not dangerous We don't have to issue a warning when a stronger error correcting capability is chosen. Signed-off-by: Richard Genoud Acked-by: Josh Wu Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 7e50ed89e18a..08715106f925 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -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");