From b673969b102cece38c5de54d35617425459174f5 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Sun, 25 Oct 2015 17:24:31 +0100 Subject: remove unneeded drivers --- drivers/bluetooth/hci_ldisc.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'drivers/bluetooth') diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 1d939b2..0f9c2e2 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c @@ -90,12 +90,6 @@ static inline void hci_uart_tx_complete(struct hci_uart *hu, int pkt_type) { struct hci_dev *hdev = hu->hdev; -#if defined(CONFIG_BT_CSR8811) - if(hdev == NULL) - return ; -#endif - - /* Update HCI stat counters */ switch (pkt_type) { case HCI_COMMAND_PKT: @@ -130,11 +124,6 @@ int hci_uart_tx_wakeup(struct hci_uart *hu) struct hci_dev *hdev = hu->hdev; struct sk_buff *skb; -#if defined(CONFIG_BT_CSR8811) - if(hdev == NULL) - return -1; -#endif - if (test_and_set_bit(HCI_UART_SENDING, &hu->tx_state)) { set_bit(HCI_UART_TX_WAKEUP, &hu->tx_state); return 0; @@ -147,13 +136,6 @@ restart: while ((skb = hci_uart_dequeue(hu))) { int len; -/* Samsung Bluetooth Feature.2012.01.19 - * Add wake_peer uart operation which is called before starting UART TX - */ -#if !defined(CONFIG_BT_CSR8811) - if (hdev->wake_peer) - hdev->wake_peer(hdev); -#endif set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); len = tty->ops->write(tty, skb->data, skb->len); @@ -349,11 +331,6 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty) { struct hci_uart *hu = (void *)tty->disc_data; -#if defined(CONFIG_BT_CSR8811) - if(hu->hdev == NULL) - return ; -#endif - BT_DBG(""); if (!hu) @@ -384,22 +361,12 @@ static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, char *f { struct hci_uart *hu = (void *)tty->disc_data; -#if defined(CONFIG_BT_CSR8811) - if(hu->hdev == NULL) - return ; -#endif - if (!hu || tty != hu->tty) return; if (!test_bit(HCI_UART_PROTO_SET, &hu->flags)) return; -/* CSR8811 Project(Dayton.Kim) 2012.02.23 */ - if (hu == NULL || hu->proto == NULL || hu->proto->recv == NULL || data == NULL) - return; -/* CSR8811 Project(Dayton.Kim) end */ - spin_lock(&hu->rx_lock); hu->proto->recv(hu, (void *) data, count); hu->hdev->stat.byte_rx += count; @@ -414,8 +381,6 @@ static int hci_uart_register_dev(struct hci_uart *hu) BT_DBG(""); - BT_ERR("hci_uart_register_dev"); - /* Initialize and register HCI device */ hdev = hci_alloc_dev(); if (!hdev) { -- cgit v1.1