[PATCH 12/16] usb: xhci: Include device_compat.h

Sean Anderson
2020-10-05T01:39:53Z

This header is necessary for the dev_xxx macros.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
---

drivers/usb/host/xhci-mtk.c | 5 +++--
drivers/usb/host/xhci.c | 7 ++++---
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index f3f181dae0..f62e232d21 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -7,15 +7,16 @@
#include <clk.h>
#include <common.h>
#include <dm.h>
+#include <dm/device_compat.h>
#include <dm/devres.h>
#include <generic-phy.h>
#include <malloc.h>
+#include <power/regulator.h>
#include <usb.h>
+#include <usb/xhci.h>
#include <linux/errno.h>
#include <linux/compat.h>
-#include <power/regulator.h>
#include <linux/iopoll.h>
-#include <usb/xhci.h>

/* IPPC (IP Port Control) registers */
#define IPPC_IP_PW_CTRL0 0x00
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 3547a9bad1..7080f8fabe 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -22,11 +22,13 @@
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
+#include <dm/device_compat.h>
#include <log.h>
-#include <asm/byteorder.h>
-#include <usb.h>
#include <malloc.h>
+#include <usb.h>
+#include <usb/xhci.h>
#include <watchdog.h>
+#include <asm/byteorder.h>
#include <asm/cache.h>
#include <asm/unaligned.h>
#include <linux/bitops.h>
@@ -34,7 +36,6 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
-#include <usb/xhci.h>

#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
--
2.28.0