aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sysfs.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-17 20:24:19 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-18 03:46:54 -0400
commitbdc3e0f1d2019fbf89f150ed98860b1a7a762fe9 (patch)
tree8342c38bc031b2287f2934be740c6991feea5069 /net/bluetooth/hci_sysfs.c
parentffcecac6a7380af84d4c1d676a6c3c524d31eeda (diff)
Bluetooth: Move device_add handling into hci_register_dev
The device_add handling can be done directly in hci_register_dev and device_remove within hci_unregister_dev. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_sysfs.c')
-rw-r--r--net/bluetooth/hci_sysfs.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index 320a76118252..9cbf8fefb044 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -402,24 +402,6 @@ void hci_init_sysfs(struct hci_dev *hdev)
402 device_initialize(dev); 402 device_initialize(dev);
403} 403}
404 404
405int hci_add_sysfs(struct hci_dev *hdev)
406{
407 struct device *dev = &hdev->dev;
408
409 BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
410
411 dev_set_name(dev, "%s", hdev->name);
412
413 return device_add(dev);
414}
415
416void hci_del_sysfs(struct hci_dev *hdev)
417{
418 BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
419
420 device_del(&hdev->dev);
421}
422
423int __init bt_sysfs_init(void) 405int __init bt_sysfs_init(void)
424{ 406{
425 bt_class = class_create(THIS_MODULE, "bluetooth"); 407 bt_class = class_create(THIS_MODULE, "bluetooth");