[PATCH 13/16] usb: musb-new: Include device_compat.h
Sean Anderson
seanga2 at gmail.com
Mon Oct 5 03:39:54 CEST 2020
This was included, but was ifdef'd out. We also need dm.h for struct
udevice.
Signed-off-by: Sean Anderson <seanga2 at gmail.com>
---
drivers/usb/musb-new/musb_core.c | 2 ++
drivers/usb/musb-new/musb_dsps.c | 2 ++
drivers/usb/musb-new/musb_gadget.c | 2 ++
drivers/usb/musb-new/musb_gadget_ep0.c | 4 +++-
drivers/usb/musb-new/musb_host.c | 2 ++
5 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/musb-new/musb_core.c b/drivers/usb/musb-new/musb_core.c
index 961de99795..22811a5efb 100644
--- a/drivers/usb/musb-new/musb_core.c
+++ b/drivers/usb/musb-new/musb_core.c
@@ -80,6 +80,8 @@
#include <linux/io.h>
#else
#include <common.h>
+#include <dm.h>
+#include <dm/device_compat.h>
#include <usb.h>
#include <linux/bitops.h>
#include <linux/bug.h>
diff --git a/drivers/usb/musb-new/musb_dsps.c b/drivers/usb/musb-new/musb_dsps.c
index eb590885bc..236bab3dc1 100644
--- a/drivers/usb/musb-new/musb_dsps.c
+++ b/drivers/usb/musb-new/musb_dsps.c
@@ -32,6 +32,8 @@
#include <plat/usb.h>
#else
#include <common.h>
+#include <dm.h>
+#include <dm/device_compat.h>
#include <asm/omap_musb.h>
#include "linux-compat.h"
#endif
diff --git a/drivers/usb/musb-new/musb_gadget.c b/drivers/usb/musb-new/musb_gadget.c
index 8ba98d8c0e..5b149dac6d 100644
--- a/drivers/usb/musb-new/musb_gadget.c
+++ b/drivers/usb/musb-new/musb_gadget.c
@@ -23,6 +23,8 @@
#include <linux/slab.h>
#else
#include <common.h>
+#include <dm.h>
+#include <dm/device_compat.h>
#include <linux/bug.h>
#include <linux/usb/ch9.h>
#include "linux-compat.h"
diff --git a/drivers/usb/musb-new/musb_gadget_ep0.c b/drivers/usb/musb-new/musb_gadget_ep0.c
index 93f43ba471..cbd92fca6b 100644
--- a/drivers/usb/musb-new/musb_gadget_ep0.c
+++ b/drivers/usb/musb-new/musb_gadget_ep0.c
@@ -19,8 +19,10 @@
#include <linux/interrupt.h>
#else
#include <common.h>
-#include "linux-compat.h"
+#include <dm.h>
+#include <dm/device_compat.h>
#include <asm/processor.h>
+#include "linux-compat.h"
#endif
#include "musb_core.h"
diff --git a/drivers/usb/musb-new/musb_host.c b/drivers/usb/musb-new/musb_host.c
index 5fa013659c..acb2d40f3b 100644
--- a/drivers/usb/musb-new/musb_host.c
+++ b/drivers/usb/musb-new/musb_host.c
@@ -22,6 +22,8 @@
#include <linux/dma-mapping.h>
#else
#include <common.h>
+#include <dm.h>
+#include <dm/device_compat.h>
#include <usb.h>
#include <linux/bug.h>
#include "linux-compat.h"
--
2.28.0
More information about the U-Boot
mailing list