diff options
Diffstat (limited to 'drivers/char/moxa.c')
-rw-r--r-- | drivers/char/moxa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 2bba250ffc8e..d3d7864e0c1e 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c | |||
@@ -374,12 +374,13 @@ copy: | |||
374 | return ret; | 374 | return ret; |
375 | } | 375 | } |
376 | 376 | ||
377 | static void moxa_break_ctl(struct tty_struct *tty, int state) | 377 | static int moxa_break_ctl(struct tty_struct *tty, int state) |
378 | { | 378 | { |
379 | struct moxa_port *port = tty->driver_data; | 379 | struct moxa_port *port = tty->driver_data; |
380 | 380 | ||
381 | moxafunc(port->tableAddr, state ? FC_SendBreak : FC_StopBreak, | 381 | moxafunc(port->tableAddr, state ? FC_SendBreak : FC_StopBreak, |
382 | Magic_code); | 382 | Magic_code); |
383 | return 0; | ||
383 | } | 384 | } |
384 | 385 | ||
385 | static const struct tty_operations moxa_ops = { | 386 | static const struct tty_operations moxa_ops = { |