Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195414
b: refs/heads/master
c: da01c7a
h: refs/heads/master
v: v3
  • Loading branch information
Peter Korsgaard authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 2f0f155 commit 8b4a782
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: fe662b43521a8b8ad2dc79299922d0b0bb3fe728
refs/heads/master: da01c7a49bfc94dbfa66af5ca5e1063b10bc6a10
14 changes: 12 additions & 2 deletions trunk/drivers/usb/gadget/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,18 @@ MODULE_LICENSE("GPL");

static int __init hidg_init(void)
{
platform_driver_probe(&hidg_plat_driver, hidg_plat_driver_probe);
return usb_composite_register(&hidg_driver);
int status;

status = platform_driver_probe(&hidg_plat_driver,
hidg_plat_driver_probe);
if (status < 0)
return status;

status = usb_composite_register(&hidg_driver);
if (status < 0)
platform_driver_unregister(&hidg_plat_driver);

return status;
}
module_init(hidg_init);

Expand Down

0 comments on commit 8b4a782

Please sign in to comment.