Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167703
b: refs/heads/master
c: f74c77c
h: refs/heads/master
i:
  167701: d9fc413
  167699: d686582
  167695: 5860686
v: v3
  • Loading branch information
Dave Young authored and David S. Miller committed Oct 20, 2009
1 parent 91d0c5c commit db8a90d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: b103cf34382f26ff48a87931b83f13b177b47c1a
refs/heads/master: f74c77cb1124a11acf69c98d10c0fdc22f322664
4 changes: 2 additions & 2 deletions trunk/net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ static void add_conn(struct work_struct *work)

dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);

dev_set_drvdata(&conn->dev, conn);

if (device_add(&conn->dev) < 0) {
BT_ERR("Failed to register connection device");
return;
Expand Down Expand Up @@ -144,8 +146,6 @@ void hci_conn_init_sysfs(struct hci_conn *conn)
conn->dev.class = bt_class;
conn->dev.parent = &hdev->dev;

dev_set_drvdata(&conn->dev, conn);

device_initialize(&conn->dev);

INIT_WORK(&conn->work_add, add_conn);
Expand Down

0 comments on commit db8a90d

Please sign in to comment.