diff options
author | Andrei Warkentin <andreiw@motorola.com> | 2011-02-11 18:19:26 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-16 14:33:25 -0500 |
commit | 7f4b2b04c88377af30c022f36c060190182850fb (patch) | |
tree | b8fd693f5fc824e038646eb9d595c6dfa3d46085 /drivers/bluetooth | |
parent | c6f3c5f7f2938d2809bcc15889e9aa212038a554 (diff) |
Bluetooth: Make hci a child of the corresponding tty device.
Make /sys/class/bluetooth/hciX a symlink to
path under corresponding tty.
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 3c6cabcb7d84..48ad2a7ab080 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -398,6 +398,7 @@ static int hci_uart_register_dev(struct hci_uart *hu) | |||
398 | hdev->flush = hci_uart_flush; | 398 | hdev->flush = hci_uart_flush; |
399 | hdev->send = hci_uart_send_frame; | 399 | hdev->send = hci_uart_send_frame; |
400 | hdev->destruct = hci_uart_destruct; | 400 | hdev->destruct = hci_uart_destruct; |
401 | hdev->parent = hu->tty->dev; | ||
401 | 402 | ||
402 | hdev->owner = THIS_MODULE; | 403 | hdev->owner = THIS_MODULE; |
403 | 404 | ||