tftp: update: Include missing cfi_flash.h header
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 10 Feb 2018 15:22:07 +0000 (16:22 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 14 Feb 2018 01:34:07 +0000 (20:34 -0500)
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

index 33bffaa89eca52014e88fdab626912be8f55bbdf..ef61790f4bc83e190ed5dc10ad4161bd71ba55cf 100644 (file)
@@ -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"