From 554c73c0256c9e22af1b89e842a310b73b5eb657 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Sat, 11 Feb 2017 22:43:55 +0900 Subject: flash: compile common/flash.c iif CONFIG_MTD_NO_FLASH is enabled The whole of common/flash.c is guarded by #if defined() ... #endif. Move the conditional to common/Makefile. Signed-off-by: Masahiro Yamada --- common/flash.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'common/flash.c') diff --git a/common/flash.c b/common/flash.c index 6d492c729f0..587ef601585 100644 --- a/common/flash.c +++ b/common/flash.c @@ -10,7 +10,6 @@ #include #include -#if defined(CONFIG_MTD_NOR_FLASH) #include extern flash_info_t flash_info[]; /* info for FLASH chips */ @@ -218,7 +217,3 @@ void flash_perror (int err) break; } } - -/*----------------------------------------------------------------------- - */ -#endif /* !CONFIG_MTD_NOR_FLASH */ -- cgit v1.2.3