diff mbox series

[03/28] usb: host: sl811: use usb_debugfs_create_file() to create file

Message ID c84b662b2cb07ba2ad931677d6e4315b49bf355a.1573008520.git.chunfeng.yun@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [01/28] usb: common: change usb_debug_root as static variable | expand

Commit Message

Chunfeng Yun (云春峰) Nov. 6, 2019, 3:15 a.m. UTC
The usb_debug_root is now a file-scope static variable, use
usb_debugfs_create_file() to create file under usb root

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/host/sl811-hcd.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index 72a34a1eb618..8669cd3cd6f9 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -1496,9 +1496,8 @@  DEFINE_SHOW_ATTRIBUTE(sl811h_debug);
 /* expect just one sl811 per system */
 static void create_debug_file(struct sl811 *sl811)
 {
-	sl811->debug_file = debugfs_create_file("sl811h", S_IRUGO,
-						usb_debug_root, sl811,
-						&sl811h_debug_fops);
+	sl811->debug_file = usb_debugfs_create_file("sl811h", S_IRUGO,
+						sl811, &sl811h_debug_fops);
 }
 
 static void remove_debug_file(struct sl811 *sl811)