summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2014-10-31 08:31:01 +0100
committerTom Rini <trini@ti.com>2014-11-17 08:47:17 -0500
commitc1ec4062825284d77552cedcaffe9cb08079d677 (patch)
treecb9dc97c59bb46419f34169ea5198f65abf6c2af
parent0c3117b1f740405ae16f267b4d0534906df433ba (diff)
downloadu-boot-imx-c1ec4062825284d77552cedcaffe9cb08079d677.zip
u-boot-imx-c1ec4062825284d77552cedcaffe9cb08079d677.tar.gz
u-boot-imx-c1ec4062825284d77552cedcaffe9cb08079d677.tar.bz2
mtd: atmel_nand: add missing include
using this driver in SPL code with CONFIG_SPL_NAND_ECC configured leads in an compileerror. Fix this. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com> Reviewed-by: Bo Shen <voice.shen@atmel.com> [fix subject] Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
-rw-r--r--drivers/mtd/nand/atmel_nand.c1
1 files changed, 1 insertions, 0 deletions
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