diff options
Diffstat (limited to 'drivers/char/istallion.c')
-rw-r--r-- | drivers/char/istallion.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index 24637bbf02f..843a2afaf20 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c | |||
@@ -609,7 +609,7 @@ static void stli_unthrottle(struct tty_struct *tty); | |||
609 | static void stli_stop(struct tty_struct *tty); | 609 | static void stli_stop(struct tty_struct *tty); |
610 | static void stli_start(struct tty_struct *tty); | 610 | static void stli_start(struct tty_struct *tty); |
611 | static void stli_flushbuffer(struct tty_struct *tty); | 611 | static void stli_flushbuffer(struct tty_struct *tty); |
612 | static void stli_breakctl(struct tty_struct *tty, int state); | 612 | static int stli_breakctl(struct tty_struct *tty, int state); |
613 | static void stli_waituntilsent(struct tty_struct *tty, int timeout); | 613 | static void stli_waituntilsent(struct tty_struct *tty, int timeout); |
614 | static void stli_sendxchar(struct tty_struct *tty, char ch); | 614 | static void stli_sendxchar(struct tty_struct *tty, char ch); |
615 | static void stli_hangup(struct tty_struct *tty); | 615 | static void stli_hangup(struct tty_struct *tty); |
@@ -925,8 +925,7 @@ static void stli_close(struct tty_struct *tty, struct file *filp) | |||
925 | clear_bit(ST_TXBUSY, &portp->state); | 925 | clear_bit(ST_TXBUSY, &portp->state); |
926 | clear_bit(ST_RXSTOP, &portp->state); | 926 | clear_bit(ST_RXSTOP, &portp->state); |
927 | set_bit(TTY_IO_ERROR, &tty->flags); | 927 | set_bit(TTY_IO_ERROR, &tty->flags); |
928 | if (tty->ldisc.ops->flush_buffer) | 928 | tty_ldisc_flush(tty); |
929 | (tty->ldisc.ops->flush_buffer)(tty); | ||
930 | set_bit(ST_DOFLUSHRX, &portp->state); | 929 | set_bit(ST_DOFLUSHRX, &portp->state); |
931 | stli_flushbuffer(tty); | 930 | stli_flushbuffer(tty); |
932 | 931 | ||
@@ -1909,7 +1908,7 @@ static void stli_flushbuffer(struct tty_struct *tty) | |||
1909 | 1908 | ||
1910 | /*****************************************************************************/ | 1909 | /*****************************************************************************/ |
1911 | 1910 | ||
1912 | static void stli_breakctl(struct tty_struct *tty, int state) | 1911 | static int stli_breakctl(struct tty_struct *tty, int state) |
1913 | { | 1912 | { |
1914 | struct stlibrd *brdp; | 1913 | struct stlibrd *brdp; |
1915 | struct stliport *portp; | 1914 | struct stliport *portp; |
@@ -1917,15 +1916,16 @@ static void stli_breakctl(struct tty_struct *tty, int state) | |||
1917 | 1916 | ||
1918 | portp = tty->driver_data; | 1917 | portp = tty->driver_data; |
1919 | if (portp == NULL) | 1918 | if (portp == NULL) |
1920 | return; | 1919 | return -EINVAL; |
1921 | if (portp->brdnr >= stli_nrbrds) | 1920 | if (portp->brdnr >= stli_nrbrds) |
1922 | return; | 1921 | return -EINVAL; |
1923 | brdp = stli_brds[portp->brdnr]; | 1922 | brdp = stli_brds[portp->brdnr]; |
1924 | if (brdp == NULL) | 1923 | if (brdp == NULL) |
1925 | return; | 1924 | return -EINVAL; |
1926 | 1925 | ||
1927 | arg = (state == -1) ? BREAKON : BREAKOFF; | 1926 | arg = (state == -1) ? BREAKON : BREAKOFF; |
1928 | stli_cmdwait(brdp, portp, A_BREAK, &arg, sizeof(long), 0); | 1927 | stli_cmdwait(brdp, portp, A_BREAK, &arg, sizeof(long), 0); |
1928 | return 0; | ||
1929 | } | 1929 | } |
1930 | 1930 | ||
1931 | /*****************************************************************************/ | 1931 | /*****************************************************************************/ |