aboutsummaryrefslogtreecommitdiff
path: root/include/spi_flash.h
diff options
context:
space:
mode:
authorSimon Glass2020-07-19 10:15:40 -0600
committerTom Rini2020-08-03 22:19:54 -0400
commita00867b47a4be848c400f74b97479193a41d327c (patch)
treea6d706a4659889055eb48b367643cd0dae0cbefd /include/spi_flash.h
parent2a64ada78cba32196a4f49bd000a501fa2c96647 (diff)
sf: Drop dm.h header file from spi_flash.h
This header file should not be included in other header files. Remove it and use a forward declaration instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/spi_flash.h')
-rw-r--r--include/spi_flash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spi_flash.h b/include/spi_flash.h
index b3366194876..85cae32cc73 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -9,10 +9,11 @@
#ifndef _SPI_FLASH_H_
#define _SPI_FLASH_H_
-#include <dm.h> /* Because we dereference struct udevice here */
#include <linux/types.h>
#include <linux/mtd/spi-nor.h>
+struct udevice;
+
/* by default ENV use the same parameters than SF command */
#ifndef CONFIG_ENV_SPI_BUS
# define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS