Commit 843c9e8796a7a6ebe0c9dec54c6a64ac29949d8f

Authored by Simon Glass
1 parent ebe76a2df9

dm: Add spi.h header to a few files

Some files are using SPI functions but not explitly including the SPI
header file. Fix this, since driver model needs it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>

Showing 3 changed files with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -12,6 +12,7 @@
12 12 #include <common.h>
13 13 #include <environment.h>
14 14 #include <malloc.h>
  15 +#include <spi.h>
15 16 #include <spi_flash.h>
16 17 #include <search.h>
17 18 #include <errno.h>
drivers/dfu/dfu_sf.c
... ... @@ -9,6 +9,7 @@
9 9 #include <errno.h>
10 10 #include <div64.h>
11 11 #include <dfu.h>
  12 +#include <spi.h>
12 13 #include <spi_flash.h>
13 14  
14 15 static long dfu_get_medium_size_sf(struct dfu_entity *dfu)
drivers/mtd/spi/sf_params.c
... ... @@ -7,6 +7,7 @@
7 7 */
8 8  
9 9 #include <common.h>
  10 +#include <spi.h>
10 11 #include <spi_flash.h>
11 12  
12 13 #include "sf_internal.h"