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

Chunfeng Yun
2019-11-06T03:17:07Z

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 --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);