diff options
Diffstat (limited to 'drivers/usb/serial/navman.c')
-rw-r--r-- | drivers/usb/serial/navman.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index 5ceaa4c6be09..a6b207c84917 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
@@ -12,6 +12,7 @@ | |||
12 | * flags as the navman is rx only so cannot echo. | 12 | * flags as the navman is rx only so cannot echo. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/gfp.h> | ||
15 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 17 | #include <linux/init.h> |
17 | #include <linux/tty.h> | 18 | #include <linux/tty.h> |
@@ -22,7 +23,7 @@ | |||
22 | 23 | ||
23 | static int debug; | 24 | static int debug; |
24 | 25 | ||
25 | static struct usb_device_id id_table [] = { | 26 | static const struct usb_device_id id_table[] = { |
26 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ | 27 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ |
27 | { }, | 28 | { }, |
28 | }; | 29 | }; |
@@ -66,7 +67,6 @@ static void navman_read_int_callback(struct urb *urb) | |||
66 | 67 | ||
67 | tty = tty_port_tty_get(&port->port); | 68 | tty = tty_port_tty_get(&port->port); |
68 | if (tty && urb->actual_length) { | 69 | if (tty && urb->actual_length) { |
69 | tty_buffer_request_room(tty, urb->actual_length); | ||
70 | tty_insert_flip_string(tty, data, urb->actual_length); | 70 | tty_insert_flip_string(tty, data, urb->actual_length); |
71 | tty_flip_buffer_push(tty); | 71 | tty_flip_buffer_push(tty); |
72 | } | 72 | } |