Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195364
b: refs/heads/master
c: b0f9da7
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 32e73dd commit 0cd058e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e618834ef9608750a36d03d4aa9a9f931aa788d6
refs/heads/master: b0f9da7e02776a8c5ad61b9e24feebf7b12a7243
7 changes: 5 additions & 2 deletions trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2056,12 +2056,12 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)

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",
Expand All @@ -2078,6 +2078,9 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)

return 0;

fail5:
musb_exit_debugfs(musb);

fail4:
if (!is_otg_enabled(musb) && is_host_enabled(musb))
usb_remove_hcd(musb_to_hcd(musb));
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/musb_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ int __init musb_init_debugfs(struct musb *musb)
return ret;
}

void __exit musb_exit_debugfs(struct musb *musb)
void /* __init_or_exit */ musb_exit_debugfs(struct musb *musb)
{
debugfs_remove_recursive(musb_debugfs_root);
}

0 comments on commit 0cd058e

Please sign in to comment.