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

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

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

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

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index cf2b7ae93b7e..773ea1f3beec 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1306,7 +1306,7 @@ static int __init ehci_hcd_init(void)
sizeof(struct ehci_itd), sizeof(struct ehci_sitd));

#ifdef CONFIG_DYNAMIC_DEBUG
- ehci_debug_root = debugfs_create_dir("ehci", usb_debug_root);
+ ehci_debug_root = usb_debugfs_create_dir("ehci");
#endif

#ifdef PLATFORM_DRIVER