diff options
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 51917b0f079a..8c2d531eedea 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -395,7 +395,7 @@ static void serial_set_termios(struct tty_struct *tty, struct ktermios *old) | |||
395 | tty_termios_copy_hw(tty->termios, old); | 395 | tty_termios_copy_hw(tty->termios, old); |
396 | } | 396 | } |
397 | 397 | ||
398 | static void serial_break(struct tty_struct *tty, int break_state) | 398 | static int serial_break(struct tty_struct *tty, int break_state) |
399 | { | 399 | { |
400 | struct usb_serial_port *port = tty->driver_data; | 400 | struct usb_serial_port *port = tty->driver_data; |
401 | 401 | ||
@@ -409,6 +409,7 @@ static void serial_break(struct tty_struct *tty, int break_state) | |||
409 | port->serial->type->break_ctl(tty, break_state); | 409 | port->serial->type->break_ctl(tty, break_state); |
410 | unlock_kernel(); | 410 | unlock_kernel(); |
411 | } | 411 | } |
412 | return 0; | ||
412 | } | 413 | } |
413 | 414 | ||
414 | static int serial_read_proc(char *page, char **start, off_t off, int count, | 415 | static int serial_read_proc(char *page, char **start, off_t off, int count, |