Message ID | 20191027155410.187957-28-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show |
Series | [U-Boot,01/30] lib: Allow crc32 to be disabled. | expand |
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)
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@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(-)