summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_core.c
diff options
context:
space:
mode:
authorFelipe Balbi2010-03-25 12:25:18 +0100
committerGreg Kroah-Hartman2010-05-20 22:21:35 +0200
commitb0f9da7e02776a8c5ad61b9e24feebf7b12a7243 (patch)
tree6b88155e7e21759ba9cf04f884cb65d75fed8329 /drivers/usb/musb/musb_core.c
parentUSB: option.c: option_indat_callback: Resubmit some unsuccessful URBs (diff)
downloadkernel-qcow2-linux-b0f9da7e02776a8c5ad61b9e24feebf7b12a7243.tar.gz
kernel-qcow2-linux-b0f9da7e02776a8c5ad61b9e24feebf7b12a7243.tar.xz
kernel-qcow2-linux-b0f9da7e02776a8c5ad61b9e24feebf7b12a7243.zip
usb: musb: debugfs: musb_exit_debugfs() can be called on probe
when we fail to probe(), we can call musb_exit_debugfs(). Allow that by removing section annotations. Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r--drivers/usb/musb/musb_core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 3466cd53e9c8..27aaaa023a1e 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2056,12 +2056,12 @@ bad_config:
status = musb_init_debugfs(musb);
if (status < 0)
- goto fail2;
+ goto fail4;
#ifdef CONFIG_SYSFS
status = sysfs_create_group(&musb->controller->kobj, &musb_attr_group);
if (status)
- goto fail4;
+ goto fail5;
#endif
dev_info(dev, "USB %s mode controller at %p using %s, IRQ %d\n",
@@ -2078,6 +2078,9 @@ bad_config:
return 0;
+fail5:
+ musb_exit_debugfs(musb);
+
fail4:
if (!is_otg_enabled(musb) && is_host_enabled(musb))
usb_remove_hcd(musb_to_hcd(musb));