[U-Boot] [PATCH] board: nios2: Add CONFIG_CFI_FLASH_MTD guard to flash.h header include

Ezequiel Garcia ezequiel.garcia at free-electrons.com
Fri Dec 20 22:34:53 CET 2013


Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
---
 board/altera/nios2-generic/nios2-generic.c | 2 ++
 1 file changed, 2 insertions(+)

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>
 
-- 
1.8.1.5



More information about the U-Boot mailing list