diff mbox series

[20/28] usb: musb: create debugfs subdirectory under usb root directory

Message ID b494cbc8dd31c62fbf1dd0102100ce0f5b220929.1573008520.git.chunfeng.yun@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [01/28] usb: common: change usb_debug_root as static variable | expand

Commit Message

Chunfeng Yun (云春峰) Nov. 6, 2019, 3:15 a.m. UTC
Now the USB gadget subsystem can use the USB debugfs root directory,
so move musb's directory from the root of the debugfs filesystem into
the root of usb

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/musb/musb_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c
index f42858e2b54c..599576c30991 100644
--- a/drivers/usb/musb/musb_debugfs.c
+++ b/drivers/usb/musb/musb_debugfs.c
@@ -325,7 +325,7 @@  void musb_init_debugfs(struct musb *musb)
 {
 	struct dentry *root;
 
-	root = debugfs_create_dir(dev_name(musb->controller), NULL);
+	root = usb_debugfs_create_dir(dev_name(musb->controller));
 	musb->debugfs_root = root;
 
 	debugfs_create_file("regdump", S_IRUGO, root, musb, &musb_regdump_fops);