|
@@ -229,15 +229,6 @@ int hci_uart_init_ready(struct hci_uart *hu)
|
|
|
}
|
|
|
|
|
|
/* ------- Interface to HCI layer ------ */
|
|
|
-/* Initialize device */
|
|
|
-static int hci_uart_open(struct hci_dev *hdev)
|
|
|
-{
|
|
|
- BT_DBG("%s %p", hdev->name, hdev);
|
|
|
-
|
|
|
- /* Nothing to do for UART driver */
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
/* Reset device */
|
|
|
static int hci_uart_flush(struct hci_dev *hdev)
|
|
|
{
|
|
@@ -264,6 +255,17 @@ static int hci_uart_flush(struct hci_dev *hdev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+/* Initialize device */
|
|
|
+static int hci_uart_open(struct hci_dev *hdev)
|
|
|
+{
|
|
|
+ BT_DBG("%s %p", hdev->name, hdev);
|
|
|
+
|
|
|
+ /* Undo clearing this from hci_uart_close() */
|
|
|
+ hdev->flush = hci_uart_flush;
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
/* Close device */
|
|
|
static int hci_uart_close(struct hci_dev *hdev)
|
|
|
{
|