diff options
Diffstat (limited to 'drivers/serial/ioc3_serial.c')
-rw-r--r-- | drivers/serial/ioc3_serial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/ioc3_serial.c b/drivers/serial/ioc3_serial.c index d8983dd5c4b2..f164ba4eba02 100644 --- a/drivers/serial/ioc3_serial.c +++ b/drivers/serial/ioc3_serial.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/pci.h> | 20 | #include <linux/pci.h> |
21 | #include <linux/serial_core.h> | 21 | #include <linux/serial_core.h> |
22 | #include <linux/ioc3.h> | 22 | #include <linux/ioc3.h> |
23 | #include <linux/slab.h> | ||
23 | 24 | ||
24 | /* | 25 | /* |
25 | * Interesting things about the ioc3 | 26 | * Interesting things about the ioc3 |
@@ -1411,8 +1412,7 @@ static int receive_chars(struct uart_port *the_port) | |||
1411 | read_count = do_read(the_port, ch, MAX_CHARS); | 1412 | read_count = do_read(the_port, ch, MAX_CHARS); |
1412 | if (read_count > 0) { | 1413 | if (read_count > 0) { |
1413 | flip = 1; | 1414 | flip = 1; |
1414 | read_room = tty_buffer_request_room(tty, read_count); | 1415 | read_room = tty_insert_flip_string(tty, ch, read_count); |
1415 | tty_insert_flip_string(tty, ch, read_room); | ||
1416 | the_port->icount.rx += read_count; | 1416 | the_port->icount.rx += read_count; |
1417 | } | 1417 | } |
1418 | spin_unlock_irqrestore(&the_port->lock, pflags); | 1418 | spin_unlock_irqrestore(&the_port->lock, pflags); |
@@ -2162,7 +2162,7 @@ static struct ioc3_submodule ioc3uart_ops = { | |||
2162 | /** | 2162 | /** |
2163 | * ioc3_detect - module init called, | 2163 | * ioc3_detect - module init called, |
2164 | */ | 2164 | */ |
2165 | static int __devinit ioc3uart_init(void) | 2165 | static int __init ioc3uart_init(void) |
2166 | { | 2166 | { |
2167 | int ret; | 2167 | int ret; |
2168 | 2168 | ||
@@ -2179,7 +2179,7 @@ static int __devinit ioc3uart_init(void) | |||
2179 | return ret; | 2179 | return ret; |
2180 | } | 2180 | } |
2181 | 2181 | ||
2182 | static void __devexit ioc3uart_exit(void) | 2182 | static void __exit ioc3uart_exit(void) |
2183 | { | 2183 | { |
2184 | ioc3_unregister_submodule(&ioc3uart_ops); | 2184 | ioc3_unregister_submodule(&ioc3uart_ops); |
2185 | uart_unregister_driver(&ioc3_uart); | 2185 | uart_unregister_driver(&ioc3_uart); |