[PATCH 28/28] usb: gadget: udc: s3c2410_udc: create debugfs directory under usb root

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

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>
---
drivers/usb/gadget/udc/s3c2410_udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c
index f82208fbc249..575c63dd0754 100644
--- a/drivers/usb/gadget/udc/s3c2410_udc.c
+++ b/drivers/usb/gadget/udc/s3c2410_udc.c
@@ -1978,7 +1978,7 @@ 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 = usb_debugfs_create_dir(gadget_name);

retval = platform_driver_register(&udc_driver_24x0);
if (retval)