diff options
Diffstat (limited to 'drivers/usb/serial/mos7720.c')
-rw-r--r-- | drivers/usb/serial/mos7720.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index dfd728a263d2..4f70df33975a 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -1299,8 +1299,6 @@ static void mos7720_throttle(struct tty_struct *tty) | |||
1299 | mos7720_port->shadowMCR &= ~UART_MCR_RTS; | 1299 | mos7720_port->shadowMCR &= ~UART_MCR_RTS; |
1300 | write_mos_reg(port->serial, port->port_number, MCR, | 1300 | write_mos_reg(port->serial, port->port_number, MCR, |
1301 | mos7720_port->shadowMCR); | 1301 | mos7720_port->shadowMCR); |
1302 | if (status != 0) | ||
1303 | return; | ||
1304 | } | 1302 | } |
1305 | } | 1303 | } |
1306 | 1304 | ||
@@ -1331,8 +1329,6 @@ static void mos7720_unthrottle(struct tty_struct *tty) | |||
1331 | mos7720_port->shadowMCR |= UART_MCR_RTS; | 1329 | mos7720_port->shadowMCR |= UART_MCR_RTS; |
1332 | write_mos_reg(port->serial, port->port_number, MCR, | 1330 | write_mos_reg(port->serial, port->port_number, MCR, |
1333 | mos7720_port->shadowMCR); | 1331 | mos7720_port->shadowMCR); |
1334 | if (status != 0) | ||
1335 | return; | ||
1336 | } | 1332 | } |
1337 | } | 1333 | } |
1338 | 1334 | ||
@@ -1657,7 +1653,7 @@ static void change_port_settings(struct tty_struct *tty, | |||
1657 | write_mos_reg(serial, port_number, IER, 0x0c); | 1653 | write_mos_reg(serial, port_number, IER, 0x0c); |
1658 | 1654 | ||
1659 | if (port->read_urb->status != -EINPROGRESS) { | 1655 | if (port->read_urb->status != -EINPROGRESS) { |
1660 | status = usb_submit_urb(port->read_urb, GFP_ATOMIC); | 1656 | status = usb_submit_urb(port->read_urb, GFP_KERNEL); |
1661 | if (status) | 1657 | if (status) |
1662 | dev_dbg(&port->dev, "usb_submit_urb(read bulk) failed, status = %d\n", status); | 1658 | dev_dbg(&port->dev, "usb_submit_urb(read bulk) failed, status = %d\n", status); |
1663 | } | 1659 | } |
@@ -1702,7 +1698,7 @@ static void mos7720_set_termios(struct tty_struct *tty, | |||
1702 | change_port_settings(tty, mos7720_port, old_termios); | 1698 | change_port_settings(tty, mos7720_port, old_termios); |
1703 | 1699 | ||
1704 | if (port->read_urb->status != -EINPROGRESS) { | 1700 | if (port->read_urb->status != -EINPROGRESS) { |
1705 | status = usb_submit_urb(port->read_urb, GFP_ATOMIC); | 1701 | status = usb_submit_urb(port->read_urb, GFP_KERNEL); |
1706 | if (status) | 1702 | if (status) |
1707 | dev_dbg(&port->dev, "usb_submit_urb(read bulk) failed, status = %d\n", status); | 1703 | dev_dbg(&port->dev, "usb_submit_urb(read bulk) failed, status = %d\n", status); |
1708 | } | 1704 | } |