summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-19 19:15:36 +0300
committerTom Rini <trini@konsulko.com>2020-08-04 05:19:54 +0300
commit82a7697b5ab3327d76cba884e10ac603aadac68c (patch)
treee35987dbb902a54935c036722f0e26204e6ec0cc
parent54234592df3324cdb6013d8c94013a2982dd660e (diff)
downloadu-boot-82a7697b5ab3327d76cba884e10ac603aadac68c.tar.xz
dm: core: Drop dm.h header file from dm-demo.h
This header file should not be included in other header files. Remove it and add it to the cmd file instead. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--cmd/demo.c1
-rw-r--r--include/dm-demo.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/cmd/demo.c b/cmd/demo.c
index 9da06f5e4d..f923533f79 100644
--- a/cmd/demo.c
+++ b/cmd/demo.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
+#include <dm.h>
#include <dm-demo.h>
#include <mapmem.h>
#include <asm/io.h>
diff --git a/include/dm-demo.h b/include/dm-demo.h
index c9a82c7e52..7b6d0d80ff 100644
--- a/include/dm-demo.h
+++ b/include/dm-demo.h
@@ -6,8 +6,6 @@
#ifndef __DM_DEMO_H
#define __DM_DEMO_H
-#include <dm.h>
-
/**
* struct dm_demo_pdata - configuration data for demo instance
*