diff mbox series

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

Message ID bf9344f6ecede96eb68fb92c7e88e0b36b000ea6.1573008520.git.chunfeng.yun@mediatek.com (mailing list archive)
State New, archived
Headers show
Series None | 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/isp1362-hcd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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