blob: 1dc466570b87423fe4af821ce95172ffb2ee58a5 [file] [log] [blame]
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -430,7 +430,10 @@ static int hci_uart_register_dev(struct
hdev->close = hci_uart_close;
hdev->flush = hci_uart_flush;
hdev->send = hci_uart_send_frame;
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,36))
SET_HCIDEV_DEV(hdev, hu->tty->dev);
+#endif
if (test_bit(HCI_UART_RAW_DEVICE, &hu->hdev_flags))
set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);