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:
Wu Liang feng
2017-01-04 11:48:31 +08:00
committed by Huang, Tao
parent a997cb77e7
commit f84f892f15

View File

@@ -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 =