kernel/3.1[02]: move MTD root device setup code to mtdcore
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 451-mtd-nand-fix-return-code-of-nand_correct_data-function.patch
1 --- a/drivers/mtd/nand/nand_ecc.c
2 +++ b/drivers/mtd/nand/nand_ecc.c
3 @@ -507,7 +507,7 @@ int __nand_correct_data(unsigned char *b
4 return 1; /* error in ECC data; no action needed */
5
6 pr_err("%s: uncorrectable ECC error", __func__);
7 - return -1;
8 + return -EBADMSG;
9 }
10 EXPORT_SYMBOL(__nand_correct_data);
11