[U-Boot] [PATCH v1 05/10] mtd: atmel_nand: add missign include

Heiko Schocher hs at denx.de
Wed Oct 1 07:54:49 CEST 2014


using this driver in SPL code with CONFIG_SPL_NAND_ECC
configured leads in a compileerror. Fix this.

Signed-off-by: Heiko Schocher <hs at denx.de>
Cc: Andreas Bießmann <andreas.devel at googlemail.com>
Cc: Bo Shen <voice.shen at atmel.com>
Cc: Scott Wood <scottwood at freescale.com>
Cc: Josh Wu <josh.wu at atmel.com>

---
 drivers/mtd/nand/atmel_nand.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 9114a86..d506e42 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -18,6 +18,7 @@
 #include <malloc.h>
 #include <nand.h>
 #include <watchdog.h>
+#include <linux/mtd/nand_ecc.h>
 
 #ifdef CONFIG_ATMEL_NAND_HWECC
 
-- 
1.8.3.1



More information about the U-Boot mailing list