aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r--drivers/usb/musb/musb_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 28ff0330bcea..3466cd53e9c8 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2054,6 +2054,10 @@ bad_config:
2054 if (status < 0) 2054 if (status < 0)
2055 goto fail3; 2055 goto fail3;
2056 2056
2057 status = musb_init_debugfs(musb);
2058 if (status < 0)
2059 goto fail2;
2060
2057#ifdef CONFIG_SYSFS 2061#ifdef CONFIG_SYSFS
2058 status = sysfs_create_group(&musb->controller->kobj, &musb_attr_group); 2062 status = sysfs_create_group(&musb->controller->kobj, &musb_attr_group);
2059 if (status) 2063 if (status)
@@ -2150,6 +2154,7 @@ static int __exit musb_remove(struct platform_device *pdev)
2150 * - Peripheral mode: peripheral is deactivated (or never-activated) 2154 * - Peripheral mode: peripheral is deactivated (or never-activated)
2151 * - OTG mode: both roles are deactivated (or never-activated) 2155 * - OTG mode: both roles are deactivated (or never-activated)
2152 */ 2156 */
2157 musb_exit_debugfs(musb);
2153 musb_shutdown(pdev); 2158 musb_shutdown(pdev);
2154#ifdef CONFIG_USB_MUSB_HDRC_HCD 2159#ifdef CONFIG_USB_MUSB_HDRC_HCD
2155 if (musb->board_mode == MUSB_HOST) 2160 if (musb->board_mode == MUSB_HOST)