X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Famiserial.c;h=6e763e3f5a815565d57e06ab26641c4a6979856d;hb=c5b0079c0a7641caac3fedab75e8e63aeb54d7e2;hp=37457e5a4f2b8ce6d06f728788dbeee2a54e3fee;hpb=7022b15e2a9f878fd5184586064c63352c3dd225;p=linux-2.6 diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c index 37457e5a4f..6e763e3f5a 100644 --- a/drivers/char/amiserial.c +++ b/drivers/char/amiserial.c @@ -1248,13 +1248,13 @@ static int rs_tiocmset(struct tty_struct *tty, struct file *file, /* * rs_break() --- routine which turns the break handling on or off */ -static void rs_break(struct tty_struct *tty, int break_state) +static int rs_break(struct tty_struct *tty, int break_state) { struct async_struct * info = (struct async_struct *)tty->driver_data; unsigned long flags; if (serial_paranoia_check(info, tty->name, "rs_break")) - return; + return -EINVAL; local_irq_save(flags); if (break_state == -1) @@ -1263,6 +1263,7 @@ static void rs_break(struct tty_struct *tty, int break_state) custom.adkcon = AC_UARTBRK; mb(); local_irq_restore(flags); + return 0; }