diff mbox series

[U-Boot,3/3] tftp: update: Include missing cfi_flash.h header

Message ID 20180210152207.10286-3-marek.vasut+renesas@gmail.com
State Accepted
Commit 175c3e3ade134bf140da79193f41d4c4b8352626
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/3] cmd: fitupd: Convert CONFIG_CMD_FITUPD | expand

Commit Message

Marek Vasut Feb. 10, 2018, 3:22 p.m. UTC
Add the missing header, otherwise CONFIG_SYS_MAX_FLASH_BANKS
may be undeclared.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
---
 common/update.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini Feb. 14, 2018, 3:56 a.m. UTC | #1
On Sat, Feb 10, 2018 at 04:22:07PM +0100, Marek Vasut wrote:

> Add the missing header, otherwise CONFIG_SYS_MAX_FLASH_BANKS
> may be undeclared.
> 
> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
> Cc: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/common/update.c b/common/update.c
index 33bffaa89e..ef61790f4b 100644
--- a/common/update.c
+++ b/common/update.c
@@ -24,6 +24,7 @@ 
 #include <malloc.h>
 #include <dfu.h>
 #include <errno.h>
+#include <mtd/cfi_flash.h>
 
 /* env variable holding the location of the update file */
 #define UPDATE_FILE_ENV		"updatefile"