summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-12-20 18:34:53 -0300
committerTom Rini <trini@ti.com>2014-01-14 09:01:05 -0500
commita113fb39df43546c704aa8eba55720da9a9dfedd (patch)
treec64899522a5a261ef3bd75a891cacdafd1bfe776 /board
parentc5cbe1e299b60063e43a9008e85df95c8006d28f (diff)
downloadu-boot-a113fb39df43546c704aa8eba55720da9a9dfedd.tar.gz
board: nios2: Add CONFIG_CFI_FLASH_MTD guard to flash.h header include
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Diffstat (limited to 'board')
-rw-r--r--board/altera/nios2-generic/nios2-generic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/altera/nios2-generic/nios2-generic.c b/board/altera/nios2-generic/nios2-generic.c
index 5c5b1b9148..aa126d71bc 100644
--- a/board/altera/nios2-generic/nios2-generic.c
+++ b/board/altera/nios2-generic/nios2-generic.c
@@ -8,7 +8,9 @@
#include <common.h>
#include <netdev.h>
+#if defined(CONFIG_CFI_FLASH_MTD)
#include <mtd/cfi_flash.h>
+#endif
#include <asm/io.h>
#include <asm/gpio.h>