Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45401
b: refs/heads/master
c: c893779
h: refs/heads/master
i:
  45399: 1c45fad
v: v3
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Jan 9, 2007
1 parent d8f8113 commit c90be29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 4d6a2188bd456969f52c03edf1988de90f08d9f5
refs/heads/master: c893779e9fbe78575cbd04596f1fcafdb48e8f3f
7 changes: 6 additions & 1 deletion trunk/net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static void add_conn(struct work_struct *work)
struct hci_conn *conn = container_of(work, struct hci_conn, work);
int i;

if (device_register(&conn->dev) < 0) {
if (device_add(&conn->dev) < 0) {
BT_ERR("Failed to register connection device");
return;
}
Expand Down Expand Up @@ -272,6 +272,8 @@ void hci_conn_add_sysfs(struct hci_conn *conn)

dev_set_drvdata(&conn->dev, conn);

device_initialize(&conn->dev);

INIT_WORK(&conn->work, add_conn);

schedule_work(&conn->work);
Expand All @@ -287,6 +289,9 @@ void hci_conn_del_sysfs(struct hci_conn *conn)
{
BT_DBG("conn %p", conn);

if (!device_is_registered(&conn->dev))
return;

INIT_WORK(&conn->work, del_conn);

schedule_work(&conn->work);
Expand Down

0 comments on commit c90be29

Please sign in to comment.