Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324770
b: refs/heads/master
c: d7b990a
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Khoroshilov authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 7f4ff30 commit 5cbed63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 1d200e8d0a53f419e89097b0fc197941228191c3
refs/heads/master: d7b990a035a86a07e81231caceb6e624056c258f
10 changes: 9 additions & 1 deletion trunk/drivers/staging/bcm/InterfaceInit.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@ struct class *bcm_class;

static __init int bcm_init(void)
{
int retval;

printk(KERN_INFO "%s: %s, %s\n", DRV_NAME, DRV_DESCRIPTION, DRV_VERSION);
printk(KERN_INFO "%s\n", DRV_COPYRIGHT);

Expand All @@ -678,7 +680,13 @@ static __init int bcm_init(void)
return PTR_ERR(bcm_class);
}

return usb_register(&usbbcm_driver);
retval = usb_register(&usbbcm_driver);
if (retval < 0) {
printk(KERN_ERR DRV_NAME ": could not register usb driver\n");
class_destroy(bcm_class);
return retval;
}
return 0;
}

static __exit void bcm_exit(void)
Expand Down

0 comments on commit 5cbed63

Please sign in to comment.