diff options
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 0bce1fe2c62a..f977c98cfa95 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c | |||
@@ -934,7 +934,7 @@ uart_tiocmset(struct tty_struct *tty, struct file *file, | |||
934 | return ret; | 934 | return ret; |
935 | } | 935 | } |
936 | 936 | ||
937 | static void uart_break_ctl(struct tty_struct *tty, int break_state) | 937 | static int uart_break_ctl(struct tty_struct *tty, int break_state) |
938 | { | 938 | { |
939 | struct uart_state *state = tty->driver_data; | 939 | struct uart_state *state = tty->driver_data; |
940 | struct uart_port *port = state->port; | 940 | struct uart_port *port = state->port; |
@@ -945,6 +945,7 @@ static void uart_break_ctl(struct tty_struct *tty, int break_state) | |||
945 | port->ops->break_ctl(port, break_state); | 945 | port->ops->break_ctl(port, break_state); |
946 | 946 | ||
947 | mutex_unlock(&state->mutex); | 947 | mutex_unlock(&state->mutex); |
948 | return 0; | ||
948 | } | 949 | } |
949 | 950 | ||
950 | static int uart_do_autoconfig(struct uart_state *state) | 951 | static int uart_do_autoconfig(struct uart_state *state) |