]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ufs: Drop dm.h header file
authorSimon Glass <sjg@chromium.org>
Sun, 19 Jul 2020 16:15:54 +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.

Also drop asm/io.h

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/ufs/cdns-platform.c
drivers/ufs/ufs.c
drivers/ufs/ufs.h

index 1a7bb7bed8a777803bdbb26f862e3ae7ba82de70..bad1bf7de5f0b4397547f493fa5f519543dff454 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <ufs.h>
+#include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
index 87b4e5fc5605e9ba9a4dadc7381b67228f1375bb..92b7e9fd7cfc2fee27779268db3ba255fb4c8de7 100644 (file)
 #include <malloc.h>
 #include <hexdump.h>
 #include <scsi.h>
+#include <asm/io.h>
+#include <asm/dma-mapping.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
-
 #include <linux/dma-mapping.h>
 
 #include "ufs.h"
index e0bde9377687fbe9dc7aa9556b9c2984086d9c9f..069888fdd906e07162471e6cb5ad12ecfe0f42c8 100644 (file)
@@ -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)