diff options
Diffstat (limited to 'drivers/char/synclink_gt.c')
-rw-r--r-- | drivers/char/synclink_gt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 2c3e43bb2cc9..cf87bb89a77d 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c | |||
@@ -165,7 +165,7 @@ static int read_proc(char *page, char **start, off_t off, int count,int *eof, v | |||
165 | static int chars_in_buffer(struct tty_struct *tty); | 165 | static int chars_in_buffer(struct tty_struct *tty); |
166 | static void throttle(struct tty_struct * tty); | 166 | static void throttle(struct tty_struct * tty); |
167 | static void unthrottle(struct tty_struct * tty); | 167 | static void unthrottle(struct tty_struct * tty); |
168 | static void set_break(struct tty_struct *tty, int break_state); | 168 | static int set_break(struct tty_struct *tty, int break_state); |
169 | 169 | ||
170 | /* | 170 | /* |
171 | * generic HDLC support and callbacks | 171 | * generic HDLC support and callbacks |
@@ -513,7 +513,7 @@ static int wait_mgsl_event(struct slgt_info *info, int __user *mask_ptr); | |||
513 | static int tiocmget(struct tty_struct *tty, struct file *file); | 513 | static int tiocmget(struct tty_struct *tty, struct file *file); |
514 | static int tiocmset(struct tty_struct *tty, struct file *file, | 514 | static int tiocmset(struct tty_struct *tty, struct file *file, |
515 | unsigned int set, unsigned int clear); | 515 | unsigned int set, unsigned int clear); |
516 | static void set_break(struct tty_struct *tty, int break_state); | 516 | static int set_break(struct tty_struct *tty, int break_state); |
517 | static int get_interface(struct slgt_info *info, int __user *if_mode); | 517 | static int get_interface(struct slgt_info *info, int __user *if_mode); |
518 | static int set_interface(struct slgt_info *info, int if_mode); | 518 | static int set_interface(struct slgt_info *info, int if_mode); |
519 | static int set_gpio(struct slgt_info *info, struct gpio_desc __user *gpio); | 519 | static int set_gpio(struct slgt_info *info, struct gpio_desc __user *gpio); |
@@ -1452,14 +1452,14 @@ static void unthrottle(struct tty_struct * tty) | |||
1452 | * set or clear transmit break condition | 1452 | * set or clear transmit break condition |
1453 | * break_state -1=set break condition, 0=clear | 1453 | * break_state -1=set break condition, 0=clear |
1454 | */ | 1454 | */ |
1455 | static void set_break(struct tty_struct *tty, int break_state) | 1455 | static int set_break(struct tty_struct *tty, int break_state) |
1456 | { | 1456 | { |
1457 | struct slgt_info *info = tty->driver_data; | 1457 | struct slgt_info *info = tty->driver_data; |
1458 | unsigned short value; | 1458 | unsigned short value; |
1459 | unsigned long flags; | 1459 | unsigned long flags; |
1460 | 1460 | ||
1461 | if (sanity_check(info, tty->name, "set_break")) | 1461 | if (sanity_check(info, tty->name, "set_break")) |
1462 | return; | 1462 | return -EINVAL; |
1463 | DBGINFO(("%s set_break(%d)\n", info->device_name, break_state)); | 1463 | DBGINFO(("%s set_break(%d)\n", info->device_name, break_state)); |
1464 | 1464 | ||
1465 | spin_lock_irqsave(&info->lock,flags); | 1465 | spin_lock_irqsave(&info->lock,flags); |
@@ -1470,6 +1470,7 @@ static void set_break(struct tty_struct *tty, int break_state) | |||
1470 | value &= ~BIT6; | 1470 | value &= ~BIT6; |
1471 | wr_reg16(info, TCR, value); | 1471 | wr_reg16(info, TCR, value); |
1472 | spin_unlock_irqrestore(&info->lock,flags); | 1472 | spin_unlock_irqrestore(&info->lock,flags); |
1473 | return 0; | ||
1473 | } | 1474 | } |
1474 | 1475 | ||
1475 | #if SYNCLINK_GENERIC_HDLC | 1476 | #if SYNCLINK_GENERIC_HDLC |