aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/quatech2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/quatech2.c')
-rw-r--r--drivers/usb/serial/quatech2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c
index b0a9478a8c9e..f2ca7d80c8a0 100644
--- a/drivers/usb/serial/quatech2.c
+++ b/drivers/usb/serial/quatech2.c
@@ -343,7 +343,7 @@ static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
343 int status; 343 int status;
344 unsigned long flags; 344 unsigned long flags;
345 345
346 device_port = (u16) (port->number - port->serial->minor); 346 device_port = port->port_number;
347 347
348 serial = port->serial; 348 serial = port->serial;
349 349
@@ -388,9 +388,8 @@ static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
388 status = qt2_set_port_config(serial->dev, device_port, 388 status = qt2_set_port_config(serial->dev, device_port,
389 DEFAULT_BAUD_RATE, UART_LCR_WLEN8); 389 DEFAULT_BAUD_RATE, UART_LCR_WLEN8);
390 if (status < 0) { 390 if (status < 0) {
391 dev_err(&port->dev, 391 dev_err(&port->dev, "%s - initial setup failed (%i)\n",
392 "%s - initial setup failed for port %i (%i)\n", 392 __func__, device_port);
393 __func__, port->number, device_port);
394 return status; 393 return status;
395 } 394 }
396 395