[PATCH 22/28] usb: dwc2: create debugfs subdirectory under usb root directory

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

Now the USB gadget subsystem can use the USB debugfs root directory,
so move dwc2'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/dwc2/debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc2/debugfs.c b/drivers/usb/dwc2/debugfs.c
index 7f62f4cdc265..e7709f73d4ff 100644
--- a/drivers/usb/dwc2/debugfs.c
+++ b/drivers/usb/dwc2/debugfs.c
@@ -770,7 +770,7 @@ int dwc2_debugfs_init(struct dwc2_hsotg *hsotg)
int ret;
struct dentry *root;

- root = debugfs_create_dir(dev_name(hsotg->dev), NULL);
+ root = usb_debugfs_create_dir(dev_name(hsotg->dev));
hsotg->debug_root = root;

debugfs_create_file("params", 0444, root, hsotg, &params_fops);