kernel: add preliminary support for linux 3.3
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.3 / 451-mtd_fix_nand_correct_data_return_code.patch
1 --- a/drivers/mtd/nand/nand_ecc.c
2 +++ b/drivers/mtd/nand/nand_ecc.c
3 @@ -507,8 +507,7 @@ int __nand_correct_data(unsigned char *b
4 if ((bitsperbyte[b0] + bitsperbyte[b1] + bitsperbyte[b2]) == 1)
5 return 1; /* error in ECC data; no action needed */
6
7 - printk(KERN_ERR "uncorrectable error : ");
8 - return -1;
9 + return -EBADMSG;
10 }
11 EXPORT_SYMBOL(__nand_correct_data);
12