Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 4a237d5

Browse files
Thinh Nguyengregkh
authored andcommitted
usb: xhci-plat: Don't include xhci.h
The xhci_plat.h should not need to include the entire xhci.h header. This can cause redefinition in dwc3 if it selectively includes some xHCI definitions. This is a prerequisite change for a fix to disable suspend during initialization for dwc3. Cc: [email protected] Signed-off-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/310acfa01c957a10d9feaca3f7206269866ba2eb.1713394973.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 650ae71 commit 4a237d5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/usb/host/xhci-plat.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
#ifndef _XHCI_PLAT_H
99
#define _XHCI_PLAT_H
1010

11-
#include "xhci.h" /* for hcd_to_xhci() */
11+
struct device;
12+
struct platform_device;
13+
struct usb_hcd;
1214

1315
struct xhci_plat_priv {
1416
const char *firmware_name;

drivers/usb/host/xhci-rzv2m.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#include <linux/usb/rzv2m_usb3drd.h>
9+
#include "xhci.h"
910
#include "xhci-plat.h"
1011
#include "xhci-rzv2m.h"
1112

0 commit comments

Comments
 (0)