diff options
| author | Simon Glass <[email protected]> | 2020-07-19 10:15:40 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-08-03 22:19:54 -0400 |
| commit | a00867b47a4be848c400f74b97479193a41d327c (patch) | |
| tree | a6d706a4659889055eb48b367643cd0dae0cbefd /include | |
| parent | 2a64ada78cba32196a4f49bd000a501fa2c96647 (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 <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/spi_flash.h | 3 |
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 |
