[PATCH 02/28] usb: core: use usb_debugfs_create_file() to create debugfs file

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

Use usb_debugfs_create_file() to create debugfs file under usb
root

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

diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index f16c26dc079d..8053af9e4218 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -967,7 +967,7 @@ static struct dentry *usb_devices_root;

static void usb_debugfs_init(void)
{
- usb_devices_root = debugfs_create_file("devices", 0444, usb_debug_root,
+ usb_devices_root = usb_debugfs_create_file("devices", 0444,
NULL, &usbfs_devices_fops);
}