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

Message ID 1573541519-28488-8-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/bcm63xx_udc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/usb/gadget/udc/bcm63xx_udc.c
index 97b16463f3ef..166df4215042 100644
--- a/drivers/usb/gadget/udc/bcm63xx_udc.c
+++ b/drivers/usb/gadget/udc/bcm63xx_udc.c
@@ -2248,7 +2248,7 @@  static void bcm63xx_udc_init_debugfs(struct bcm63xx_udc *udc)
-	root = debugfs_create_dir(udc->gadget.name, NULL);
+	root = debugfs_create_dir(udc->gadget.name, usb_debug_root);
 	udc->debugfs_root = root;
 	debugfs_create_file("usbd", 0400, root, udc, &bcm63xx_usbd_dbg_fops);