diff options
Diffstat (limited to 'drivers/usb/serial/spcp8x5.c')
-rw-r--r-- | drivers/usb/serial/spcp8x5.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index f06c9a8f3d3..cad60898471 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -151,14 +151,6 @@ enum spcp8x5_type { | |||
151 | SPCP835_TYPE, | 151 | SPCP835_TYPE, |
152 | }; | 152 | }; |
153 | 153 | ||
154 | static struct usb_driver spcp8x5_driver = { | ||
155 | .name = "spcp8x5", | ||
156 | .probe = usb_serial_probe, | ||
157 | .disconnect = usb_serial_disconnect, | ||
158 | .id_table = id_table, | ||
159 | }; | ||
160 | |||
161 | |||
162 | struct spcp8x5_private { | 154 | struct spcp8x5_private { |
163 | spinlock_t lock; | 155 | spinlock_t lock; |
164 | enum spcp8x5_type type; | 156 | enum spcp8x5_type type; |
@@ -433,7 +425,7 @@ static void spcp8x5_set_termios(struct tty_struct *tty, | |||
433 | if (i < 0) | 425 | if (i < 0) |
434 | dev_err(&port->dev, "Set UART format %#x failed (error = %d)\n", | 426 | dev_err(&port->dev, "Set UART format %#x failed (error = %d)\n", |
435 | uartdata, i); | 427 | uartdata, i); |
436 | dbg("0x21:0x40:0:0 %d", i); | 428 | dev_dbg(&port->dev, "0x21:0x40:0:0 %d\n", i); |
437 | 429 | ||
438 | if (cflag & CRTSCTS) { | 430 | if (cflag & CRTSCTS) { |
439 | /* enable hardware flow control */ | 431 | /* enable hardware flow control */ |
@@ -454,8 +446,6 @@ static int spcp8x5_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
454 | u8 status = 0x30; | 446 | u8 status = 0x30; |
455 | /* status 0x30 means DSR and CTS = 1 other CDC RI and delta = 0 */ | 447 | /* status 0x30 means DSR and CTS = 1 other CDC RI and delta = 0 */ |
456 | 448 | ||
457 | dbg("%s - port %d", __func__, port->number); | ||
458 | |||
459 | usb_clear_halt(serial->dev, port->write_urb->pipe); | 449 | usb_clear_halt(serial->dev, port->write_urb->pipe); |
460 | usb_clear_halt(serial->dev, port->read_urb->pipe); | 450 | usb_clear_halt(serial->dev, port->read_urb->pipe); |
461 | 451 | ||
@@ -579,15 +569,19 @@ static int spcp8x5_ioctl(struct tty_struct *tty, | |||
579 | unsigned int cmd, unsigned long arg) | 569 | unsigned int cmd, unsigned long arg) |
580 | { | 570 | { |
581 | struct usb_serial_port *port = tty->driver_data; | 571 | struct usb_serial_port *port = tty->driver_data; |
582 | dbg("%s (%d) cmd = 0x%04x", __func__, port->number, cmd); | 572 | |
573 | dev_dbg(&port->dev, "%s (%d) cmd = 0x%04x\n", __func__, | ||
574 | port->number, cmd); | ||
583 | 575 | ||
584 | switch (cmd) { | 576 | switch (cmd) { |
585 | case TIOCMIWAIT: | 577 | case TIOCMIWAIT: |
586 | dbg("%s (%d) TIOCMIWAIT", __func__, port->number); | 578 | dev_dbg(&port->dev, "%s (%d) TIOCMIWAIT\n", __func__, |
579 | port->number); | ||
587 | return spcp8x5_wait_modem_info(port, arg); | 580 | return spcp8x5_wait_modem_info(port, arg); |
588 | 581 | ||
589 | default: | 582 | default: |
590 | dbg("%s not supported = 0x%04x", __func__, cmd); | 583 | dev_dbg(&port->dev, "%s not supported = 0x%04x", __func__, |
584 | cmd); | ||
591 | break; | 585 | break; |
592 | } | 586 | } |
593 | 587 | ||
@@ -666,7 +660,7 @@ static struct usb_serial_driver * const serial_drivers[] = { | |||
666 | &spcp8x5_device, NULL | 660 | &spcp8x5_device, NULL |
667 | }; | 661 | }; |
668 | 662 | ||
669 | module_usb_serial_driver(spcp8x5_driver, serial_drivers); | 663 | module_usb_serial_driver(serial_drivers, id_table); |
670 | 664 | ||
671 | MODULE_DESCRIPTION(DRIVER_DESC); | 665 | MODULE_DESCRIPTION(DRIVER_DESC); |
672 | MODULE_VERSION(DRIVER_VERSION); | 666 | MODULE_VERSION(DRIVER_VERSION); |