From: Marek Vasut <marek.vasut@gmail.com>
Date: Sat, 10 Feb 2018 15:22:07 +0000 (+0100)
Subject: tftp: update: Include missing cfi_flash.h header
X-Git-Tag: v2025.01-rc5-pxa1908~4892
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=175c3e3ade134bf140da79193f41d4c4b8352626;p=u-boot.git

tftp: update: Include missing cfi_flash.h header

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

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"