Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150195
b: refs/heads/master
c: dd21ca6
h: refs/heads/master
i:
  150193: c8f8473
  150191: 2414958
v: v3
  • Loading branch information
Stanislaw Gruszka authored and David S. Miller committed May 8, 2009
1 parent 1c702ab commit 93e7e95
Show file tree
Hide file tree
Showing 2 changed files with 9 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: a8679be2073392cf22a910bc25da0c7d36459845
refs/heads/master: dd21ca6de703230785b755c8290365fc1640200e
9 changes: 8 additions & 1 deletion trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11630,13 +11630,20 @@ static struct pci_driver bnx2x_pci_driver = {

static int __init bnx2x_init(void)
{
int ret;

bnx2x_wq = create_singlethread_workqueue("bnx2x");
if (bnx2x_wq == NULL) {
printk(KERN_ERR PFX "Cannot create workqueue\n");
return -ENOMEM;
}

return pci_register_driver(&bnx2x_pci_driver);
ret = pci_register_driver(&bnx2x_pci_driver);
if (ret) {
printk(KERN_ERR PFX "Cannot register driver\n");
destroy_workqueue(bnx2x_wq);
}
return ret;
}

static void __exit bnx2x_cleanup(void)
Expand Down

0 comments on commit 93e7e95

Please sign in to comment.