]> git.sur5r.net Git - u-boot/commitdiff
board: nios2: Add CONFIG_CFI_FLASH_MTD guard to flash.h header include
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 20 Dec 2013 21:34:53 +0000 (18:34 -0300)
committerTom Rini <trini@ti.com>
Tue, 14 Jan 2014 14:01:05 +0000 (09:01 -0500)
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
board/altera/nios2-generic/nios2-generic.c

index 5c5b1b9148875158bc26273f0c840c1443c4d585..aa126d71bc50a5f90695d25957a3f5b5cd2bc530 100644 (file)
@@ -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>