Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172157
b: refs/heads/master
c: 329ab1b
h: refs/heads/master
i:
  172155: fc320cb
v: v3
  • Loading branch information
Marcel Holtmann committed Dec 3, 2009
1 parent a41b026 commit 8d4e3e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 5990108cfcd3eb2d365c9ea6f82318be80c4e9d3
refs/heads/master: 329ab1b3e6ceac3f77ab400206a97cc402624259
12 changes: 2 additions & 10 deletions trunk/drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@

#define VERSION "1.3"

static int minor = MISC_DYNAMIC_MINOR;

struct vhci_data {
struct hci_dev *hdev;

Expand Down Expand Up @@ -295,18 +293,12 @@ static int __init vhci_init(void)
{
BT_INFO("Virtual HCI driver ver %s", VERSION);

if (misc_register(&vhci_miscdev) < 0) {
BT_ERR("Can't register misc device with minor %d", minor);
return -EIO;
}

return 0;
return misc_register(&vhci_miscdev);
}

static void __exit vhci_exit(void)
{
if (misc_deregister(&vhci_miscdev) < 0)
BT_ERR("Can't unregister misc device with minor %d", minor);
misc_deregister(&vhci_miscdev);
}

module_init(vhci_init);
Expand Down

0 comments on commit 8d4e3e0

Please sign in to comment.