mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
usb: dwc3: rockchip: remove debugfs entry when rmmod dwc3-rockchip module
We add debugfs entry in dwc3-rockchip probe, so need to remove it when rmmod this driver module. Change-Id: Ic0f7cf1386ffed8d492b0ba20625c63c549a7cdd Signed-off-by: William Wu <wulf@rock-chips.com>
This commit is contained in:
committed by
Huang, Tao
parent
a997cb77e7
commit
f84f892f15
@@ -742,6 +742,8 @@ static int dwc3_rockchip_remove(struct platform_device *pdev)
|
||||
|
||||
dwc3_rockchip_extcon_unregister(rockchip);
|
||||
|
||||
debugfs_remove_recursive(rockchip->root);
|
||||
|
||||
/* Restore hcd state before unregistering xhci */
|
||||
if (rockchip->edev && !rockchip->connected) {
|
||||
struct usb_hcd *hcd =
|
||||
|
||||
Reference in New Issue
Block a user