From: Tom Rini Date: Wed, 29 Jan 2014 17:33:58 -0500 Subject: [U-Boot] [PATCH] board: nios2: Check if flash is configured before calling early_flash_cmd_reset() In-Reply-To: <1390904346-19294-1-git-send-email-ezequiel.garcia@free-electrons.com> References: <1390904346-19294-1-git-send-email-ezequiel.garcia@free-electrons.com> Message-ID: <20140129223358.GZ3277@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jan 28, 2014 at 07:19:06AM -0300, Ezequiel Garcia wrote: > If CONFIG_CFI_FLASH_MTD is not defined, then we shouldn't perform the > flash early reset. > > This commit fixes the following build error: > > nios2-generic.c: In function `__early_flash_cmd_reset': > nios2-generic.c:23: error: `AMD_CMD_RESET' undeclared (first use in this function) > nios2-generic.c:23: error: (Each undeclared identifier is reported only once > nios2-generic.c:23: error: for each function it appears in.) > nios2-generic.c:24: error: `FLASH_CMD_RESET' undeclared (first use in this function) > > which was introduced by: > > commit a113fb39df43546c704aa8eba55720da9a9dfedd > Author: Ezequiel Garcia > Date: Fri Dec 20 18:34:53 2013 -0300 > > board: nios2: Add CONFIG_CFI_FLASH_MTD guard to flash.h header include > > Signed-off-by: Ezequiel Garcia > > Cc: Thomas Chou > Reported-by: Masahiro Yamada > Signed-off-by: Ezequiel Garcia Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: