[PATCH 02/15] usb: dwc3: host: clear xhci point when host be removed.
Stanley Chang
stanley_chang at realtek.com
Wed Oct 7 04:50:22 EDT 2020
Signed-off-by: Stanley Chang <stanley_chang at realtek.com>
---
drivers/usb/dwc3/host.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c
index 5567ed2cddbe..78f470a2cddf 100644
--- a/drivers/usb/dwc3/host.c
+++ b/drivers/usb/dwc3/host.c
@@ -128,4 +128,5 @@ int dwc3_host_init(struct dwc3 *dwc)
void dwc3_host_exit(struct dwc3 *dwc)
{
platform_device_unregister(dwc->xhci);
+ dwc->xhci = NULL;
}
--
2.28.0
More information about the linux-realtek-soc
mailing list