summaryrefslogtreecommitdiff
path: root/board/altera
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/altera
parentc5cbe1e299b60063e43a9008e85df95c8006d28f (diff)
downloadu-boot-imx-a113fb39df43546c704aa8eba55720da9a9dfedd.zip
u-boot-imx-a113fb39df43546c704aa8eba55720da9a9dfedd.tar.gz
u-boot-imx-a113fb39df43546c704aa8eba55720da9a9dfedd.tar.bz2
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/altera')
-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 5c5b1b9..aa126d7 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>