mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
usb: mtu3: fix up undefined reference to usb_debug_root
When CONFIG_USB is not set, and CONFIG_USB_GADGET is set, there is an issue: ld: drivers/usb/mtu3/mtu3_debugfs.o: in function 'ssusb_debugfs_create_root': mtu3_debugfs.c:(.text+0xba3): undefined reference to 'usb_debug_root' usb_debug_root is only built when CONFIG_USB is enabled, so here drop it and use NULL instead. Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a03ff54460
commit
9610450ea3
1 changed files with 1 additions and 2 deletions
|
@ -528,8 +528,7 @@ void ssusb_dr_debugfs_init(struct ssusb_mtk *ssusb)
|
||||||
|
|
||||||
void ssusb_debugfs_create_root(struct ssusb_mtk *ssusb)
|
void ssusb_debugfs_create_root(struct ssusb_mtk *ssusb)
|
||||||
{
|
{
|
||||||
ssusb->dbgfs_root =
|
ssusb->dbgfs_root = debugfs_create_dir(dev_name(ssusb->dev), NULL);
|
||||||
debugfs_create_dir(dev_name(ssusb->dev), usb_debug_root);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ssusb_debugfs_remove_root(struct ssusb_mtk *ssusb)
|
void ssusb_debugfs_remove_root(struct ssusb_mtk *ssusb)
|
||||||
|
|
Loading…
Reference in a new issue