From 843c9e8796a7a6ebe0c9dec54c6a64ac29949d8f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 13 Oct 2014 23:41:55 -0600 Subject: [PATCH] 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 Reviewed-by: Jagannadha Sutradharudu Teki --- common/env_sf.c | 1 + drivers/dfu/dfu_sf.c | 1 + drivers/mtd/spi/sf_params.c | 1 + 3 files changed, 3 insertions(+) diff --git a/common/env_sf.c b/common/env_sf.c index 37ab13ae17..5e3729c2c2 100644 --- a/common/env_sf.c +++ b/common/env_sf.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c index 91f6df220b..c3d3c3bcd8 100644 --- a/drivers/dfu/dfu_sf.c +++ b/drivers/dfu/dfu_sf.c @@ -9,6 +9,7 @@ #include #include #include +#include #include static long dfu_get_medium_size_sf(struct dfu_entity *dfu) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c index 453edf0149..61545cacaa 100644 --- a/drivers/mtd/spi/sf_params.c +++ b/drivers/mtd/spi/sf_params.c @@ -7,6 +7,7 @@ */ #include +#include #include #include "sf_internal.h" -- 2.39.2