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

Message ID 16adfdc8d285b7f8f85f769af4e6d7792980122d.1573008520.git.chunfeng.yun@mediatek.com
State New
Headers show
Series
  • [01/28] usb: common: change usb_debug_root as static variable
Related show

Commit Message

Chunfeng Yun Nov. 6, 2019, 3:15 a.m. UTC
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(-)

Patch
diff mbox series

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);
 }