diff mbox series

[v3,2/3] usb: xhci: Remove unwanted header inclusion

Message ID 1648103831-12347-3-git-send-email-quic_c_sanm@quicinc.com
State New
Headers show
Series Refactor xhci quirks and plat private data | expand

Commit Message

Sandeep Maheswaram March 24, 2022, 6:37 a.m. UTC
The header file linux/usb/hcd.h is already included where we are using
xhci-plat.h so remove the header file and forward declare struct usb_hcd
to avoid multiple inclusions.

Signed-off-by: Sandeep Maheswaram <quic_c_sanm@quicinc.com>
---
This patch is to address below comment.
https://patchwork.kernel.org/project/linux-arm-msm/patch/1644949454-814-2-git-send-email-quic_c_sanm@quicinc.com/#24739885

 include/linux/usb/xhci-plat.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/linux/usb/xhci-plat.h b/include/linux/usb/xhci-plat.h
index 906e907..576e400 100644
--- a/include/linux/usb/xhci-plat.h
+++ b/include/linux/usb/xhci-plat.h
@@ -9,7 +9,8 @@ 
 #define _XHCI_PLAT_H
 
 #include <linux/types.h>
-#include <linux/usb/hcd.h>
+
+struct usb_hcd;
 
 struct xhci_plat_priv {
 	const char *firmware_name;