Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144761
b: refs/heads/master
c: 457ca7b
h: refs/heads/master
i:
  144759: ead1744
v: v3
  • Loading branch information
Marcel Holtmann committed May 5, 2009
1 parent 563c201 commit 53dd963
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: 356d6c2d55b71303a17910ea2cce3eba8e44bd29
refs/heads/master: 457ca7bb6bdf39d0832d3f88c65fa367a3b20de6
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 53dd963

Please sign in to comment.