Skip to content

Commit f5b7f7c

Browse files
Chunfeng Yungregkh
authored andcommitted
usb: gadget: atmel: create debugfs directory under usb root
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d4836b6 commit f5b7f7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/gadget/udc/atmel_usba_udc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/platform_device.h>
1919
#include <linux/regmap.h>
2020
#include <linux/ctype.h>
21+
#include <linux/usb.h>
2122
#include <linux/usb/ch9.h>
2223
#include <linux/usb/gadget.h>
2324
#include <linux/delay.h>
@@ -226,7 +227,7 @@ static void usba_init_debugfs(struct usba_udc *udc)
226227
struct dentry *root;
227228
struct resource *regs_resource;
228229

229-
root = debugfs_create_dir(udc->gadget.name, NULL);
230+
root = debugfs_create_dir(udc->gadget.name, usb_debug_root);
230231
udc->debugfs_root = root;
231232

232233
regs_resource = platform_get_resource(udc->pdev, IORESOURCE_MEM,

0 commit comments

Comments
 (0)