[PATCH 04/28] usb: host: isp1362: use usb_debugfs_create_file() to create file

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

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/isp1362-hcd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c
index 96f8daa11f25..6eb968dd9974 100644
--- a/drivers/usb/host/isp1362-hcd.c
+++ b/drivers/usb/host/isp1362-hcd.c
@@ -2164,8 +2164,7 @@ DEFINE_SHOW_ATTRIBUTE(isp1362);
/* expect just one isp1362_hcd per system */
static void create_debug_file(struct isp1362_hcd *isp1362_hcd)
{
- isp1362_hcd->debug_file = debugfs_create_file("isp1362", S_IRUGO,
- usb_debug_root,
+ isp1362_hcd->debug_file = usb_debugfs_create_file("isp1362", S_IRUGO,
isp1362_hcd,
&isp1362_fops);
}