]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-mem: Drop dm.h header file
authorSimon Glass <sjg@chromium.org>
Sun, 19 Jul 2020 16:15:34 +0000 (10:15 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 4 Aug 2020 02:19:54 +0000 (22:19 -0400)
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>
drivers/spi/spi-mem.c
drivers/spi/spi-sifive.c
drivers/spi/stm32_qspi.c
include/spi-mem.h

index d344701aebb93fe319dd06c1676ea4bab281f633..c095ae9505a21db9e93da52a07c219909db98567 100644 (file)
 #include <linux/pm_runtime.h>
 #include "internals.h"
 #else
-#include <dm/device_compat.h>
+#include <common.h>
+#include <dm.h>
+#include <errno.h>
+#include <malloc.h>
+#include <spi.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <dm/device_compat.h>
 #endif
 
 #ifndef __UBOOT__
index 0e0ce25abb91a3c38cb8c1280e9a205b4493a14e..c7345d904280138a95b827bed8c1bac27fb4a50f 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <malloc.h>
+#include <spi.h>
 #include <spi-mem.h>
 #include <wait_bit.h>
 #include <asm/io.h>
index 001f0703e3cba2be692c47c8fb1deff5c47d7346..a53b941410dd2b274636bc30a46efffd392e0c5e 100644 (file)
@@ -9,8 +9,10 @@
 
 #include <common.h>
 #include <clk.h>
+#include <dm.h>
 #include <log.h>
 #include <reset.h>
+#include <spi.h>
 #include <spi-mem.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
index 893f7bd73370efcfb6186b928a1d6f31e7b293b1..ca0f55c8fdf357ef087c8b4a1b30db61ab2a31bb 100644 (file)
 #ifndef __UBOOT_SPI_MEM_H
 #define __UBOOT_SPI_MEM_H
 
-#include <common.h>
-#include <dm.h>
-#include <errno.h>
-#include <spi.h>
+struct udevice;
 
 #define SPI_MEM_OP_CMD(__opcode, __buswidth)                   \
        {                                                       \