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

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

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