[PATCH 13/28] usb: mon: use usb_debugfs_create_dir() to create directory

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

The usb_debug_root is now a file-scope static variable, use
usb_debugfs_create_dir() to create directory under usb root

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

diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c
index bc5ecd5ff565..c34f952b70dc 100644
--- a/drivers/usb/mon/mon_text.c
+++ b/drivers/usb/mon/mon_text.c
@@ -763,7 +763,7 @@ static void mon_text_ctor(void *mem)

int __init mon_text_init(void)
{
- mon_dir = debugfs_create_dir("usbmon", usb_debug_root);
+ mon_dir = usb_debugfs_create_dir("usbmon");
return 0;
}