diff options
Diffstat (limited to 'drivers/usb/serial/mxuport.c')
| -rw-r--r-- | drivers/usb/serial/mxuport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/mxuport.c b/drivers/usb/serial/mxuport.c index 31a8b47f1ac6..3722d6c1ba77 100644 --- a/drivers/usb/serial/mxuport.c +++ b/drivers/usb/serial/mxuport.c | |||
| @@ -503,7 +503,7 @@ static void mxuport_process_read_urb_demux_data(struct urb *urb) | |||
| 503 | return; | 503 | return; |
| 504 | } | 504 | } |
| 505 | 505 | ||
| 506 | if (test_bit(ASYNCB_INITIALIZED, &demux_port->port.flags)) { | 506 | if (tty_port_initialized(&demux_port->port)) { |
| 507 | ch = data + HEADER_SIZE; | 507 | ch = data + HEADER_SIZE; |
| 508 | mxuport_process_read_urb_data(demux_port, ch, rcv_len); | 508 | mxuport_process_read_urb_data(demux_port, ch, rcv_len); |
| 509 | } else { | 509 | } else { |
| @@ -544,7 +544,7 @@ static void mxuport_process_read_urb_demux_event(struct urb *urb) | |||
| 544 | } | 544 | } |
| 545 | 545 | ||
| 546 | demux_port = serial->port[rcv_port]; | 546 | demux_port = serial->port[rcv_port]; |
| 547 | if (test_bit(ASYNCB_INITIALIZED, &demux_port->port.flags)) { | 547 | if (tty_port_initialized(&demux_port->port)) { |
| 548 | ch = data + HEADER_SIZE; | 548 | ch = data + HEADER_SIZE; |
| 549 | rcv_event = get_unaligned_be16(data + 2); | 549 | rcv_event = get_unaligned_be16(data + 2); |
| 550 | mxuport_process_read_urb_event(demux_port, ch, | 550 | mxuport_process_read_urb_event(demux_port, ch, |
| @@ -1339,7 +1339,7 @@ static int mxuport_resume(struct usb_serial *serial) | |||
| 1339 | 1339 | ||
| 1340 | for (i = 0; i < serial->num_ports; i++) { | 1340 | for (i = 0; i < serial->num_ports; i++) { |
| 1341 | port = serial->port[i]; | 1341 | port = serial->port[i]; |
| 1342 | if (!test_bit(ASYNCB_INITIALIZED, &port->port.flags)) | 1342 | if (!tty_port_initialized(&port->port)) |
| 1343 | continue; | 1343 | continue; |
| 1344 | 1344 | ||
| 1345 | r = usb_serial_generic_write_start(port, GFP_NOIO); | 1345 | r = usb_serial_generic_write_start(port, GFP_NOIO); |
