[PATCH 11/28] usb: xhci: use usb_debugfs_create_dir() to create directory

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

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

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

diff --git a/drivers/usb/host/xhci-debugfs.c b/drivers/usb/host/xhci-debugfs.c
index 7ba6afc7ef23..932fdbd2804f 100644
--- a/drivers/usb/host/xhci-debugfs.c
+++ b/drivers/usb/host/xhci-debugfs.c
@@ -601,7 +601,7 @@ void xhci_debugfs_exit(struct xhci_hcd *xhci)

void __init xhci_debugfs_create_root(void)
{
- xhci_debugfs_root = debugfs_create_dir("xhci", usb_debug_root);
+ xhci_debugfs_root = usb_debugfs_create_dir("xhci");
}

void __exit xhci_debugfs_remove_root(void)