mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
mtd: spi-mem: Drop dm.h header file
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>
This commit is contained in:
parent
defce58181
commit
340fd10e7b
4 changed files with 10 additions and 5 deletions
|
@ -13,9 +13,14 @@
|
|||
#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__
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -11,10 +11,7 @@
|
|||
#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) \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue