diff options
Diffstat (limited to 'drivers/bluetooth/hci_ldisc.c')
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 573ff6c1be5f..613673b12fa6 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -279,6 +279,7 @@ static int hci_uart_tty_open(struct tty_struct *tty) | |||
279 | 279 | ||
280 | tty->disc_data = hu; | 280 | tty->disc_data = hu; |
281 | hu->tty = tty; | 281 | hu->tty = tty; |
282 | tty->receive_room = 65536; | ||
282 | 283 | ||
283 | spin_lock_init(&hu->rx_lock); | 284 | spin_lock_init(&hu->rx_lock); |
284 | 285 | ||
@@ -348,20 +349,6 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty) | |||
348 | hci_uart_tx_wakeup(hu); | 349 | hci_uart_tx_wakeup(hu); |
349 | } | 350 | } |
350 | 351 | ||
351 | /* hci_uart_tty_room() | ||
352 | * | ||
353 | * Callback function from tty driver. Return the amount of | ||
354 | * space left in the receiver's buffer to decide if remote | ||
355 | * transmitter is to be throttled. | ||
356 | * | ||
357 | * Arguments: tty pointer to associated tty instance data | ||
358 | * Return Value: number of bytes left in receive buffer | ||
359 | */ | ||
360 | static int hci_uart_tty_room (struct tty_struct *tty) | ||
361 | { | ||
362 | return 65536; | ||
363 | } | ||
364 | |||
365 | /* hci_uart_tty_receive() | 352 | /* hci_uart_tty_receive() |
366 | * | 353 | * |
367 | * Called by tty low level driver when receive data is | 354 | * Called by tty low level driver when receive data is |
@@ -544,7 +531,6 @@ static int __init hci_uart_init(void) | |||
544 | hci_uart_ldisc.write = hci_uart_tty_write; | 531 | hci_uart_ldisc.write = hci_uart_tty_write; |
545 | hci_uart_ldisc.ioctl = hci_uart_tty_ioctl; | 532 | hci_uart_ldisc.ioctl = hci_uart_tty_ioctl; |
546 | hci_uart_ldisc.poll = hci_uart_tty_poll; | 533 | hci_uart_ldisc.poll = hci_uart_tty_poll; |
547 | hci_uart_ldisc.receive_room = hci_uart_tty_room; | ||
548 | hci_uart_ldisc.receive_buf = hci_uart_tty_receive; | 534 | hci_uart_ldisc.receive_buf = hci_uart_tty_receive; |
549 | hci_uart_ldisc.write_wakeup = hci_uart_tty_wakeup; | 535 | hci_uart_ldisc.write_wakeup = hci_uart_tty_wakeup; |
550 | hci_uart_ldisc.owner = THIS_MODULE; | 536 | hci_uart_ldisc.owner = THIS_MODULE; |