aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/kl5kusb105.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/kl5kusb105.c')
-rw-r--r--drivers/usb/serial/kl5kusb105.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c
index 10f05407e535..5bed59cd5776 100644
--- a/drivers/usb/serial/kl5kusb105.c
+++ b/drivers/usb/serial/kl5kusb105.c
@@ -86,13 +86,6 @@ static const struct usb_device_id id_table[] = {
86 86
87MODULE_DEVICE_TABLE(usb, id_table); 87MODULE_DEVICE_TABLE(usb, id_table);
88 88
89static struct usb_driver kl5kusb105d_driver = {
90 .name = "kl5kusb105d",
91 .probe = usb_serial_probe,
92 .disconnect = usb_serial_disconnect,
93 .id_table = id_table,
94};
95
96static struct usb_serial_driver kl5kusb105d_device = { 89static struct usb_serial_driver kl5kusb105d_device = {
97 .driver = { 90 .driver = {
98 .owner = THIS_MODULE, 91 .owner = THIS_MODULE,
@@ -282,8 +275,6 @@ static void klsi_105_release(struct usb_serial *serial)
282{ 275{
283 int i; 276 int i;
284 277
285 dbg("%s", __func__);
286
287 for (i = 0; i < serial->num_ports; ++i) 278 for (i = 0; i < serial->num_ports; ++i)
288 kfree(usb_get_serial_port_data(serial->port[i])); 279 kfree(usb_get_serial_port_data(serial->port[i]));
289} 280}
@@ -298,8 +289,6 @@ static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port)
298 struct klsi_105_port_settings *cfg; 289 struct klsi_105_port_settings *cfg;
299 unsigned long flags; 290 unsigned long flags;
300 291
301 dbg("%s port %d", __func__, port->number);
302
303 /* Do a defined restart: 292 /* Do a defined restart:
304 * Set up sane default baud rate and send the 'READ_ON' 293 * Set up sane default baud rate and send the 'READ_ON'
305 * vendor command. 294 * vendor command.
@@ -376,8 +365,6 @@ static void klsi_105_close(struct usb_serial_port *port)
376{ 365{
377 int rc; 366 int rc;
378 367
379 dbg("%s port %d", __func__, port->number);
380
381 mutex_lock(&port->serial->disc_mutex); 368 mutex_lock(&port->serial->disc_mutex);
382 if (!port->serial->disconnected) { 369 if (!port->serial->disconnected) {
383 /* send READ_OFF */ 370 /* send READ_OFF */
@@ -646,7 +633,6 @@ static int klsi_105_tiocmget(struct tty_struct *tty)
646 unsigned long flags; 633 unsigned long flags;
647 int rc; 634 int rc;
648 unsigned long line_state; 635 unsigned long line_state;
649 dbg("%s - request, just guessing", __func__);
650 636
651 rc = klsi_105_get_line_state(port, &line_state); 637 rc = klsi_105_get_line_state(port, &line_state);
652 if (rc < 0) { 638 if (rc < 0) {
@@ -668,8 +654,6 @@ static int klsi_105_tiocmset(struct tty_struct *tty,
668{ 654{
669 int retval = -EINVAL; 655 int retval = -EINVAL;
670 656
671 dbg("%s", __func__);
672
673/* if this ever gets implemented, it should be done something like this: 657/* if this ever gets implemented, it should be done something like this:
674 struct usb_serial *serial = port->serial; 658 struct usb_serial *serial = port->serial;
675 struct klsi_105_private *priv = usb_get_serial_port_data(port); 659 struct klsi_105_private *priv = usb_get_serial_port_data(port);
@@ -692,7 +676,7 @@ static int klsi_105_tiocmset(struct tty_struct *tty,
692 return retval; 676 return retval;
693} 677}
694 678
695module_usb_serial_driver(kl5kusb105d_driver, serial_drivers); 679module_usb_serial_driver(serial_drivers, id_table);
696 680
697MODULE_AUTHOR(DRIVER_AUTHOR); 681MODULE_AUTHOR(DRIVER_AUTHOR);
698MODULE_DESCRIPTION(DRIVER_DESC); 682MODULE_DESCRIPTION(DRIVER_DESC);