Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290863
b: refs/heads/master
c: 46e0653
h: refs/heads/master
i:
  290861: 31e512b
  290859: cbb3faf
  290855: 537464d
  290847: 092cb0a
v: v3
  • Loading branch information
David Herrmann authored and Johan Hedberg committed Feb 13, 2012
1 parent 8182d15 commit 4868745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 587ae086f6e44c3f1d313e3efdfc8c2866784bc3
refs/heads/master: 46e06531a5ae13c66f774d3cb1ad78385618a5a2
2 changes: 2 additions & 0 deletions trunk/net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ static void bt_host_release(struct device *dev)
{
void *data = dev_get_drvdata(dev);
kfree(data);
module_put(THIS_MODULE);
}

static struct device_type bt_host = {
Expand Down Expand Up @@ -523,6 +524,7 @@ void hci_init_sysfs(struct hci_dev *hdev)
dev->type = &bt_host;
dev->class = bt_class;

__module_get(THIS_MODULE);
dev_set_drvdata(dev, hdev);
device_initialize(dev);
}
Expand Down

0 comments on commit 4868745

Please sign in to comment.