diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_sysfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index f4f6615cad9f..f2bbb2f65434 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c | |||
@@ -113,8 +113,7 @@ void hci_conn_add_sysfs(struct hci_conn *conn) | |||
113 | conn->dev.class = bt_class; | 113 | conn->dev.class = bt_class; |
114 | conn->dev.parent = &hdev->dev; | 114 | conn->dev.parent = &hdev->dev; |
115 | 115 | ||
116 | snprintf(conn->dev.bus_id, BUS_ID_SIZE, "%s:%d", | 116 | dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); |
117 | hdev->name, conn->handle); | ||
118 | 117 | ||
119 | dev_set_drvdata(&conn->dev, conn); | 118 | dev_set_drvdata(&conn->dev, conn); |
120 | 119 | ||
@@ -132,7 +131,7 @@ void hci_conn_add_sysfs(struct hci_conn *conn) | |||
132 | */ | 131 | */ |
133 | static int __match_tty(struct device *dev, void *data) | 132 | static int __match_tty(struct device *dev, void *data) |
134 | { | 133 | { |
135 | return !strncmp(dev->bus_id, "rfcomm", 6); | 134 | return !strncmp(dev_name(dev), "rfcomm", 6); |
136 | } | 135 | } |
137 | 136 | ||
138 | static void del_conn(struct work_struct *work) | 137 | static void del_conn(struct work_struct *work) |
@@ -421,7 +420,7 @@ int hci_register_sysfs(struct hci_dev *hdev) | |||
421 | dev->class = bt_class; | 420 | dev->class = bt_class; |
422 | dev->parent = hdev->parent; | 421 | dev->parent = hdev->parent; |
423 | 422 | ||
424 | strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE); | 423 | dev_set_name(dev, hdev->name); |
425 | 424 | ||
426 | dev_set_drvdata(dev, hdev); | 425 | dev_set_drvdata(dev, hdev); |
427 | 426 | ||