[U-Boot] [PATCH 28/30] ufs: Drop dm.h header file

Simon Glass sjg at chromium.org
Sun Oct 27 15:54:08 UTC 2019


This header file should not be included in other header files. Remove it
and use a forward declaration instead.

Also drop asm.io

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/ufs/cdns-platform.c | 1 +
 drivers/ufs/ufs.c           | 2 +-
 drivers/ufs/ufs.h           | 5 ++---
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/ufs/cdns-platform.c b/drivers/ufs/cdns-platform.c
index c80f4253e4..341fd217c7 100644
--- a/drivers/ufs/cdns-platform.c
+++ b/drivers/ufs/cdns-platform.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <ufs.h>
+#include <asm/io.h>
 
 #include "ufs.h"
 
diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c
index 23306863d5..89a32d38cd 100644
--- a/drivers/ufs/ufs.c
+++ b/drivers/ufs/ufs.c
@@ -16,7 +16,7 @@
 #include <malloc.h>
 #include <hexdump.h>
 #include <scsi.h>
-
+#include <asm/io.h>
 #include <asm/dma-mapping.h>
 
 #include "ufs.h"
diff --git a/drivers/ufs/ufs.h b/drivers/ufs/ufs.h
index e0bde93776..069888fdd9 100644
--- a/drivers/ufs/ufs.h
+++ b/drivers/ufs/ufs.h
@@ -2,11 +2,10 @@
 #ifndef __UFS_H
 #define __UFS_H
 
-#include <asm/io.h>
-#include <dm.h>
-
 #include "unipro.h"
 
+struct udevice;
+
 #define UFS_CDB_SIZE	16
 #define UPIU_TRANSACTION_UIC_CMD 0x1F
 #define UIC_CMD_SIZE (sizeof(u32) * 4)
-- 
2.24.0.rc0.303.g954a862665-goog



More information about the U-Boot mailing list