aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/synclink_gt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/synclink_gt.c')
-rw-r--r--drivers/tty/synclink_gt.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
index 62a0db7ead07..473d7406db83 100644
--- a/drivers/tty/synclink_gt.c
+++ b/drivers/tty/synclink_gt.c
@@ -1893,10 +1893,8 @@ static void rx_async(struct slgt_info *info)
1893 else if (status & BIT0) 1893 else if (status & BIT0)
1894 stat = TTY_FRAME; 1894 stat = TTY_FRAME;
1895 } 1895 }
1896 if (tty) { 1896 tty_insert_flip_char(&info->port, ch, stat);
1897 tty_insert_flip_char(tty, ch, stat); 1897 chars++;
1898 chars++;
1899 }
1900 } 1898 }
1901 1899
1902 if (i < count) { 1900 if (i < count) {
@@ -2182,7 +2180,7 @@ static void isr_serial(struct slgt_info *info)
2182 if (info->port.tty) { 2180 if (info->port.tty) {
2183 if (!(status & info->ignore_status_mask)) { 2181 if (!(status & info->ignore_status_mask)) {
2184 if (info->read_status_mask & MASK_BREAK) { 2182 if (info->read_status_mask & MASK_BREAK) {
2185 tty_insert_flip_char(info->port.tty, 0, TTY_BREAK); 2183 tty_insert_flip_char(&info->port, 0, TTY_BREAK);
2186 if (info->port.flags & ASYNC_SAK) 2184 if (info->port.flags & ASYNC_SAK)
2187 do_SAK(info->port.tty); 2185 do_SAK(info->port.tty);
2188 } 2186 }