hci_sysfs.c (91de76e661a266731fc2889a398ad1694df9d523) | hci_sysfs.c (2064ee332e4c1b7495cf68b84355c213d8fe71fd) |
---|---|
1/* Bluetooth HCI driver model support. */ 2 3#include <linux/module.h> 4 5#include <net/bluetooth/bluetooth.h> 6#include <net/bluetooth/hci_core.h> 7 8static struct class *bt_class; --- 36 unchanged lines hidden (view full) --- 45{ 46 struct hci_dev *hdev = conn->hdev; 47 48 BT_DBG("conn %p", conn); 49 50 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); 51 52 if (device_add(&conn->dev) < 0) { | 1/* Bluetooth HCI driver model support. */ 2 3#include <linux/module.h> 4 5#include <net/bluetooth/bluetooth.h> 6#include <net/bluetooth/hci_core.h> 7 8static struct class *bt_class; --- 36 unchanged lines hidden (view full) --- 45{ 46 struct hci_dev *hdev = conn->hdev; 47 48 BT_DBG("conn %p", conn); 49 50 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); 51 52 if (device_add(&conn->dev) < 0) { |
53 BT_ERR("Failed to register connection device"); | 53 bt_dev_err(hdev, "failed to register connection device"); |
54 return; 55 } 56 57 hci_dev_hold(hdev); 58} 59 60void hci_conn_del_sysfs(struct hci_conn *conn) 61{ --- 54 unchanged lines hidden --- | 54 return; 55 } 56 57 hci_dev_hold(hdev); 58} 59 60void hci_conn_del_sysfs(struct hci_conn *conn) 61{ --- 54 unchanged lines hidden --- |