summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/52-tty-dev/drivers_bluetooth_hci_ldisc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/collateral-evolutions/network/52-tty-dev/drivers_bluetooth_hci_ldisc.patch')
-rw-r--r--patches/collateral-evolutions/network/52-tty-dev/drivers_bluetooth_hci_ldisc.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/52-tty-dev/drivers_bluetooth_hci_ldisc.patch b/patches/collateral-evolutions/network/52-tty-dev/drivers_bluetooth_hci_ldisc.patch
new file mode 100644
index 00000000..0d4cd779
--- /dev/null
+++ b/patches/collateral-evolutions/network/52-tty-dev/drivers_bluetooth_hci_ldisc.patch
@@ -0,0 +1,13 @@
+--- a/drivers/bluetooth/hci_ldisc.c
++++ b/drivers/bluetooth/hci_ldisc.c
+@@ -421,7 +421,10 @@
+ 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);