[v2,13/13] usb: gadget: udc: s3c2410_udc: create debugfs directory under usb root
diff mbox series

Message ID 1573541519-28488-13-git-send-email-chunfeng.yun@mediatek.com
State New
Headers show
  • [v2,01/13] media: uvcvideo: drop error check of debugfs_create_dir()
Related show

Commit Message

Chunfeng Yun Nov. 12, 2019, 6:51 a.m. UTC
Now the USB gadget subsystem can use the USB debugfs root directory,
so move it's directory from the root of the debugfs filesystem into
the root of usb

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
  1. abandon new API usb_debugfs_create_dir(), and use usb_debug_root
 drivers/usb/gadget/udc/s3c2410_udc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c
index f82208fbc249..0507a2ca0f55 100644
--- a/drivers/usb/gadget/udc/s3c2410_udc.c
+++ b/drivers/usb/gadget/udc/s3c2410_udc.c
@@ -1978,7 +1978,8 @@  static int __init udc_init(void)
 	dprintk(DEBUG_NORMAL, "%s\n", gadget_name);
-	s3c2410_udc_debugfs_root = debugfs_create_dir(gadget_name, NULL);
+	s3c2410_udc_debugfs_root = debugfs_create_dir(gadget_name,
+						      usb_debug_root);
 	retval = platform_driver_register(&udc_driver_24x0);
 	if (retval)