[15/28] media: uvcvideo: use usb_debugfs_create_dir() to create directory
diff mbox series

Message ID 83b2f2f6a343e5609db60c81b0556fba80cee2cb.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
The usb_debug_root is now a file-scope static variable, use
usb_debugfs_create_dir() to create directory under usb root

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/media/usb/uvc/uvc_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/media/usb/uvc/uvc_debugfs.c b/drivers/media/usb/uvc/uvc_debugfs.c
index d2b109959d82..0a5eb145379d 100644
--- a/drivers/media/usb/uvc/uvc_debugfs.c
+++ b/drivers/media/usb/uvc/uvc_debugfs.c
@@ -110,7 +110,7 @@  void uvc_debugfs_init(void)
 {
 	struct dentry *dir;
 
-	dir = debugfs_create_dir("uvcvideo", usb_debug_root);
+	dir = usb_debugfs_create_dir("uvcvideo");
 	if (IS_ERR_OR_NULL(dir)) {
 		uvc_printk(KERN_INFO, "Unable to create debugfs directory\n");
 		return;