projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge with /home/wd/git/u-boot/testing-NAND/ to add new NAND handling.
[platform/kernel/u-boot.git]
/
drivers
/
nand
/
nand_ecc.c
diff --git
a/drivers/nand/nand_ecc.c
b/drivers/nand/nand_ecc.c
index
6e11c22
..
4e610c1
100644
(file)
--- a/
drivers/nand/nand_ecc.c
+++ b/
drivers/nand/nand_ecc.c
@@
-37,8
+37,10
@@
#include <common.h>
+#ifdef CONFIG_NEW_NAND_CODE
#if (CONFIG_COMMANDS & CFG_CMD_NAND)
+#include<linux/mtd/mtd.h>
/*
* Pre-calculated 256-way 1 byte column parity
*/
@@
-241,3
+243,5
@@
int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_cha
}
#endif /* CONFIG_COMMANDS & CFG_CMD_NAND */
+#endif /* CONFIG_NEW_NAND_CODE */
+