projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a997cb7
)
usb: dwc3: rockchip: remove debugfs entry when rmmod dwc3-rockchip module
author
Wu Liang feng
<wulf@rock-chips.com>
Wed, 4 Jan 2017 03:48:31 +0000
(11:48 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Thu, 5 Jan 2017 01:11:15 +0000
(09:11 +0800)
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>
drivers/usb/dwc3/dwc3-rockchip.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/dwc3-rockchip.c
b/drivers/usb/dwc3/dwc3-rockchip.c
index c993e44f3f3c86fe8a124bdf7b100e281bd3bcc3..00e47f7443104286a0fbbbe2ac59b535ebe80dd9 100644
(file)
--- 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 =