[PATCH 15/28] media: uvcvideo: use usb_debugfs_create_dir() to create directory

Chunfeng Yun
2019-11-06T03:17:25Z

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

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;