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

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

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

diff --git a/drivers/usb/host/fhci-dbg.c b/drivers/usb/host/fhci-dbg.c
index 100048b3bd17..0baa495c7da9 100644
--- a/drivers/usb/host/fhci-dbg.c
+++ b/drivers/usb/host/fhci-dbg.c
@@ -82,7 +82,7 @@ void fhci_dfs_create(struct fhci_hcd *fhci)
{
struct device *dev = fhci_to_hcd(fhci)->self.controller;

- fhci->dfs_root = debugfs_create_dir(dev_name(dev), usb_debug_root);
+ fhci->dfs_root = usb_debugfs_create_dir(dev_name(dev));

debugfs_create_file("regs", S_IFREG | S_IRUGO, fhci->dfs_root, fhci,
&fhci_dfs_regs_fops);