[PATCH 12/28] usb: host: fotg2: use usb_debugfs_create_dir() to create directory

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

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/host/fotg210-hcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 9e0c98d6bdb0..9c9030044b06 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -5709,7 +5709,7 @@ static int __init fotg210_hcd_init(void)
sizeof(struct fotg210_qtd),
sizeof(struct fotg210_itd));

- fotg210_debug_root = debugfs_create_dir("fotg210", usb_debug_root);
+ fotg210_debug_root = usb_debugfs_create_dir("fotg210");

retval = platform_driver_register(&fotg210_hcd_driver);
if (retval < 0)