[U-Boot] [PATCH 11/30] fs: fs-loader: Drop dm.h header file
Simon Glass
sjg at chromium.org
Sun Oct 27 15:53:51 UTC 2019
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 at chromium.org>
---
drivers/fpga/socfpga_arria10.c | 1 +
include/fs_loader.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c
index 5fb9d6a191..d94366a39a 100644
--- a/drivers/fpga/socfpga_arria10.c
+++ b/drivers/fpga/socfpga_arria10.c
@@ -11,6 +11,7 @@
#include <altera.h>
#include <asm/arch/pinmux.h>
#include <common.h>
+#include <dm.h>
#include <dm/ofnode.h>
#include <errno.h>
#include <fs_loader.h>
diff --git a/include/fs_loader.h b/include/fs_loader.h
index b728c06fcf..1b3c58086f 100644
--- a/include/fs_loader.h
+++ b/include/fs_loader.h
@@ -6,7 +6,7 @@
#ifndef _FS_LOADER_H_
#define _FS_LOADER_H_
-#include <dm.h>
+struct udevice;
/**
* struct phandle_part - A place for storing phandle of node and its partition
--
2.24.0.rc0.303.g954a862665-goog
More information about the U-Boot
mailing list