Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144764
b: refs/heads/master
c: a860820
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed May 6, 2009
1 parent c3ee4c4 commit 13a529c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 94c7f2d49521b0bb3ab91cbeb3518ac34355d47f
refs/heads/master: a860820dce09080dc3df05064b659e931ff35a29
7 changes: 3 additions & 4 deletions trunk/net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ static struct device_type bt_link = {
static void add_conn(struct work_struct *work)
{
struct hci_conn *conn = container_of(work, struct hci_conn, work_add);
struct hci_dev *hdev = conn->hdev;

/* ensure previous del is complete */
flush_work(&conn->work_del);

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

if (device_add(&conn->dev) < 0) {
BT_ERR("Failed to register connection device");
return;
Expand Down Expand Up @@ -154,12 +157,8 @@ void hci_conn_init_sysfs(struct hci_conn *conn)

void hci_conn_add_sysfs(struct hci_conn *conn)
{
struct hci_dev *hdev = conn->hdev;

BT_DBG("conn %p", conn);

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

queue_work(bt_workq, &conn->work_add);
}

Expand Down

0 comments on commit 13a529c

Please sign in to comment.