aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-25 17:24:31 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-25 17:24:31 +0100
commitb673969b102cece38c5de54d35617425459174f5 (patch)
treed8602acbdcd29723c2f1678dcef782da039e080d /drivers/bluetooth
parent9a5be153f580e9cb52b28d3f97ec744ed012b8af (diff)
downloadkernel_samsung_smdk4412-b673969b102cece38c5de54d35617425459174f5.zip
kernel_samsung_smdk4412-b673969b102cece38c5de54d35617425459174f5.tar.gz
kernel_samsung_smdk4412-b673969b102cece38c5de54d35617425459174f5.tar.bz2
remove unneeded drivers
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_ldisc.c35
1 files changed, 0 insertions, 35 deletions
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) {