[PATCH 10/28] usb: uhci-hcd: use usb_debugfs_create_dir() to create directory

Chunfeng Yun
2019-11-06T03:16:57Z

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

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

diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
index 03bc59755123..a9707f981072 100644
--- a/drivers/usb/host/uhci-hcd.c
+++ b/drivers/usb/host/uhci-hcd.c
@@ -877,7 +877,7 @@ static int __init uhci_hcd_init(void)
errbuf = kmalloc(ERRBUF_LEN, GFP_KERNEL);
if (!errbuf)
goto errbuf_failed;
- uhci_debugfs_root = debugfs_create_dir("uhci", usb_debug_root);
+ uhci_debugfs_root = usb_debugfs_create_dir("uhci");
#endif

uhci_up_cachep = kmem_cache_create("uhci_urb_priv",