From a113fb39df43546c704aa8eba55720da9a9dfedd Mon Sep 17 00:00:00 2001 From: Ezequiel Garcia Date: Fri, 20 Dec 2013 18:34:53 -0300 Subject: [PATCH] board: nios2: Add CONFIG_CFI_FLASH_MTD guard to flash.h header include Signed-off-by: Ezequiel Garcia --- 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 5c5b1b9148..aa126d71bc 100644 --- a/board/altera/nios2-generic/nios2-generic.c +++ b/board/altera/nios2-generic/nios2-generic.c @@ -8,7 +8,9 @@ #include #include +#if defined(CONFIG_CFI_FLASH_MTD) #include +#endif #include #include -- 2.25.1