diff --git a/drivers/usb/dwc3/dwc3-rockchip.c b/drivers/usb/dwc3/dwc3-rockchip.c index c993e44f3f3c..00e47f744310 100644 --- a/drivers/usb/dwc3/dwc3-rockchip.c +++ b/drivers/usb/dwc3/dwc3-rockchip.c @@ -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 =