diff mbox

[U-Boot,09/25] dm: Add spi.h header to a few files

Message ID 1405385792-4469-10-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Simon Glass July 15, 2014, 12:56 a.m. UTC
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>
---

 common/env_sf.c             | 1 +
 drivers/mtd/spi/sf_params.c | 1 +
 2 files changed, 2 insertions(+)
diff mbox

Patch

diff --git a/common/env_sf.c b/common/env_sf.c
index 37ab13a..5e3729c 100644
--- a/common/env_sf.c
+++ b/common/env_sf.c
@@ -12,6 +12,7 @@ 
 #include <common.h>
 #include <environment.h>
 #include <malloc.h>
+#include <spi.h>
 #include <spi_flash.h>
 #include <search.h>
 #include <errno.h>
diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c
index ac886fd..53efdc8 100644
--- a/drivers/mtd/spi/sf_params.c
+++ b/drivers/mtd/spi/sf_params.c
@@ -7,6 +7,7 @@ 
  */
 
 #include <common.h>
+#include <spi.h>
 #include <spi_flash.h>
 
 #include "sf_internal.h"