aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/mos7840.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/mos7840.c')
-rw-r--r--drivers/usb/serial/mos7840.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index fdf953539c62..e5bdd987b9e8 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -1532,7 +1532,11 @@ static int mos7840_tiocmget(struct tty_struct *tty)
1532 return -ENODEV; 1532 return -ENODEV;
1533 1533
1534 status = mos7840_get_uart_reg(port, MODEM_STATUS_REGISTER, &msr); 1534 status = mos7840_get_uart_reg(port, MODEM_STATUS_REGISTER, &msr);
1535 if (status != 1)
1536 return -EIO;
1535 status = mos7840_get_uart_reg(port, MODEM_CONTROL_REGISTER, &mcr); 1537 status = mos7840_get_uart_reg(port, MODEM_CONTROL_REGISTER, &mcr);
1538 if (status != 1)
1539 return -EIO;
1536 result = ((mcr & MCR_DTR) ? TIOCM_DTR : 0) 1540 result = ((mcr & MCR_DTR) ? TIOCM_DTR : 0)
1537 | ((mcr & MCR_RTS) ? TIOCM_RTS : 0) 1541 | ((mcr & MCR_RTS) ? TIOCM_RTS : 0)
1538 | ((mcr & MCR_LOOPBACK) ? TIOCM_LOOP : 0) 1542 | ((mcr & MCR_LOOPBACK) ? TIOCM_LOOP : 0)