aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-04 19:17:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-04 19:17:51 -0400
commit3cccc292524dfd5d77f38f52116b1da4864e3789 (patch)
treee78756cf330c3e41522e3e1813c70f509db28169 /drivers
parent2af588d5f093fd8212bfe7151183a535e8e9117b (diff)
USB: serqt_usb2.c: remove dbg() tracing calls
dbg() was used a lot a long time ago to trace code flow. Now that we have ftrace, this isn't needed at all, so remove these calls. CC: Bill Pemberton <wfp5p@virginia.edu> CC: Rusty Russell <rusty@rustcorp.com.au> CC: Alan Stern <stern@rowland.harvard.edu> CC: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/serqt_usb2/serqt_usb2.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c
index 0ec83aacee79..b547b7b6eecb 100644
--- a/drivers/staging/serqt_usb2/serqt_usb2.c
+++ b/drivers/staging/serqt_usb2/serqt_usb2.c
@@ -304,8 +304,6 @@ static void qt_write_bulk_callback(struct urb *urb)
304 304
305 quatech_port = urb->context; 305 quatech_port = urb->context;
306 306
307 dbg("%s - port %d\n", __func__, quatech_port->port_num);
308
309 tty = tty_port_tty_get(&quatech_port->port->port); 307 tty = tty_port_tty_get(&quatech_port->port->port);
310 308
311 if (tty) 309 if (tty)
@@ -351,7 +349,6 @@ static void qt_read_bulk_callback(struct urb *urb)
351 /* index = MINOR(port->tty->device) - serial->minor; */ 349 /* index = MINOR(port->tty->device) - serial->minor; */
352 index = tty->index - serial->minor; 350 index = tty->index - serial->minor;
353 351
354 dbg("%s - port %d\n", __func__, port->number);
355 dbg("%s - port->RxHolding = %d\n", __func__, qt_port->RxHolding); 352 dbg("%s - port->RxHolding = %d\n", __func__, qt_port->RxHolding);
356 353
357 if (port_paranoia_check(port, __func__) != 0) { 354 if (port_paranoia_check(port, __func__) != 0) {
@@ -726,8 +723,6 @@ static int qt_startup(struct usb_serial *serial)
726 int i; 723 int i;
727 int status; 724 int status;
728 725
729 dbg("enterting %s", __func__);
730
731 /* Now setup per port private data */ 726 /* Now setup per port private data */
732 for (i = 0; i < serial->num_ports; i++) { 727 for (i = 0; i < serial->num_ports; i++) {
733 port = serial->port[i]; 728 port = serial->port[i];
@@ -855,8 +850,6 @@ static void qt_release(struct usb_serial *serial)
855 struct quatech_port *qt_port; 850 struct quatech_port *qt_port;
856 int i; 851 int i;
857 852
858 dbg("enterting %s", __func__);
859
860 for (i = 0; i < serial->num_ports; i++) { 853 for (i = 0; i < serial->num_ports; i++) {
861 port = serial->port[i]; 854 port = serial->port[i];
862 if (!port) 855 if (!port)
@@ -882,8 +875,6 @@ static int qt_open(struct tty_struct *tty,
882 if (port_paranoia_check(port, __func__)) 875 if (port_paranoia_check(port, __func__))
883 return -ENODEV; 876 return -ENODEV;
884 877
885 dbg("%s - port %d\n", __func__, port->number);
886
887 serial = port->serial; 878 serial = port->serial;
888 879
889 if (serial_paranoia_check(serial, __func__)) 880 if (serial_paranoia_check(serial, __func__))
@@ -1006,8 +997,6 @@ static int qt_chars_in_buffer(struct tty_struct *tty)
1006 997
1007 serial = get_usb_serial(port, __func__); 998 serial = get_usb_serial(port, __func__);
1008 999
1009 dbg("%s - port %d\n", __func__, port->number);
1010
1011 if (serial->num_bulk_out) { 1000 if (serial->num_bulk_out) {
1012 if (port->write_urb->status == -EINPROGRESS) 1001 if (port->write_urb->status == -EINPROGRESS)
1013 chars = port->write_urb->transfer_buffer_length; 1002 chars = port->write_urb->transfer_buffer_length;
@@ -1054,8 +1043,6 @@ static void qt_close(struct usb_serial_port *port)
1054 unsigned int index; 1043 unsigned int index;
1055 status = 0; 1044 status = 0;
1056 1045
1057 dbg("%s - port %d\n", __func__, port->number);
1058
1059 tty = tty_port_tty_get(&port->port); 1046 tty = tty_port_tty_get(&port->port);
1060 index = tty->index - serial->minor; 1047 index = tty->index - serial->minor;
1061 1048
@@ -1109,8 +1096,6 @@ static int qt_write(struct tty_struct *tty, struct usb_serial_port *port,
1109 if (serial == NULL) 1096 if (serial == NULL)
1110 return -ENODEV; 1097 return -ENODEV;
1111 1098
1112 dbg("%s - port %d\n", __func__, port->number);
1113
1114 if (count == 0) { 1099 if (count == 0) {
1115 dbg("%s - write request of 0 bytes\n", __func__); 1100 dbg("%s - write request of 0 bytes\n", __func__);
1116 return 0; 1101 return 0;
@@ -1173,8 +1158,6 @@ static int qt_write_room(struct tty_struct *tty)
1173 1158
1174 mutex_lock(&qt_port->lock); 1159 mutex_lock(&qt_port->lock);
1175 1160
1176 dbg("%s - port %d\n", __func__, port->number);
1177
1178 if (serial->num_bulk_out) { 1161 if (serial->num_bulk_out) {
1179 if (port->write_urb->status != -EINPROGRESS) 1162 if (port->write_urb->status != -EINPROGRESS)
1180 retval = port->bulk_out_size; 1163 retval = port->bulk_out_size;
@@ -1241,8 +1224,6 @@ static void qt_set_termios(struct tty_struct *tty,
1241 int baud, divisor, remainder; 1224 int baud, divisor, remainder;
1242 int status; 1225 int status;
1243 1226
1244 dbg("%s", __func__);
1245
1246 index = tty->index - port->serial->minor; 1227 index = tty->index - port->serial->minor;
1247 1228
1248 switch (cflag) { 1229 switch (cflag) {
@@ -1365,8 +1346,6 @@ static void qt_break(struct tty_struct *tty, int break_state)
1365 1346
1366 mutex_lock(&qt_port->lock); 1347 mutex_lock(&qt_port->lock);
1367 1348
1368 dbg("%s - port %d\n", __func__, port->number);
1369
1370 result = 1349 result =
1371 usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), 1350 usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
1372 QT_BREAK_CONTROL, 0x40, onoff, index, NULL, 0, 300); 1351 QT_BREAK_CONTROL, 0x40, onoff, index, NULL, 0, 300);
@@ -1385,8 +1364,6 @@ static inline int qt_real_tiocmget(struct tty_struct *tty,
1385 int status; 1364 int status;
1386 unsigned int index; 1365 unsigned int index;
1387 1366
1388 dbg("%s - port %d, tty =0x%p\n", __func__, port->number, tty);
1389
1390 index = tty->index - serial->minor; 1367 index = tty->index - serial->minor;
1391 status = 1368 status =
1392 BoxGetRegister(port->serial, index, MODEM_CONTROL_REGISTER, &mcr); 1369 BoxGetRegister(port->serial, index, MODEM_CONTROL_REGISTER, &mcr);
@@ -1426,8 +1403,6 @@ static inline int qt_real_tiocmset(struct tty_struct *tty,
1426 int status; 1403 int status;
1427 unsigned int index; 1404 unsigned int index;
1428 1405
1429 dbg("%s - port %d\n", __func__, port->number);
1430
1431 index = tty->index - serial->minor; 1406 index = tty->index - serial->minor;
1432 status = 1407 status =
1433 BoxGetRegister(port->serial, index, MODEM_CONTROL_REGISTER, &mcr); 1408 BoxGetRegister(port->serial, index, MODEM_CONTROL_REGISTER, &mcr);
@@ -1461,18 +1436,11 @@ static int qt_tiocmget(struct tty_struct *tty)
1461 struct quatech_port *qt_port = qt_get_port_private(port); 1436 struct quatech_port *qt_port = qt_get_port_private(port);
1462 int retval = -ENODEV; 1437 int retval = -ENODEV;
1463 1438
1464 dbg("In %s\n", __func__);
1465
1466 if (!serial) 1439 if (!serial)
1467 return -ENODEV; 1440 return -ENODEV;
1468 1441
1469 mutex_lock(&qt_port->lock); 1442 mutex_lock(&qt_port->lock);
1470
1471 dbg("%s - port %d\n", __func__, port->number);
1472 dbg("%s - port->RxHolding = %d\n", __func__, qt_port->RxHolding);
1473
1474 retval = qt_real_tiocmget(tty, port, serial); 1443 retval = qt_real_tiocmget(tty, port, serial);
1475
1476 mutex_unlock(&qt_port->lock); 1444 mutex_unlock(&qt_port->lock);
1477 return retval; 1445 return retval;
1478} 1446}
@@ -1486,18 +1454,11 @@ static int qt_tiocmset(struct tty_struct *tty,
1486 struct quatech_port *qt_port = qt_get_port_private(port); 1454 struct quatech_port *qt_port = qt_get_port_private(port);
1487 int retval = -ENODEV; 1455 int retval = -ENODEV;
1488 1456
1489 dbg("In %s\n", __func__);
1490
1491 if (!serial) 1457 if (!serial)
1492 return -ENODEV; 1458 return -ENODEV;
1493 1459
1494 mutex_lock(&qt_port->lock); 1460 mutex_lock(&qt_port->lock);
1495
1496 dbg("%s - port %d\n", __func__, port->number);
1497 dbg("%s - qt_port->RxHolding = %d\n", __func__, qt_port->RxHolding);
1498
1499 retval = qt_real_tiocmset(tty, port, serial, set); 1461 retval = qt_real_tiocmset(tty, port, serial, set);
1500
1501 mutex_unlock(&qt_port->lock); 1462 mutex_unlock(&qt_port->lock);
1502 return retval; 1463 return retval;
1503} 1464}
@@ -1508,8 +1469,6 @@ static void qt_throttle(struct tty_struct *tty)
1508 struct usb_serial *serial = get_usb_serial(port, __func__); 1469 struct usb_serial *serial = get_usb_serial(port, __func__);
1509 struct quatech_port *qt_port; 1470 struct quatech_port *qt_port;
1510 1471
1511 dbg("%s - port %d\n", __func__, port->number);
1512
1513 if (!serial) 1472 if (!serial)
1514 return; 1473 return;
1515 1474
@@ -1519,7 +1478,6 @@ static void qt_throttle(struct tty_struct *tty)
1519 1478
1520 /* pass on to the driver specific version of this function */ 1479 /* pass on to the driver specific version of this function */
1521 qt_port->RxHolding = 1; 1480 qt_port->RxHolding = 1;
1522 dbg("%s - port->RxHolding = 1\n", __func__);
1523 1481
1524 mutex_unlock(&qt_port->lock); 1482 mutex_unlock(&qt_port->lock);
1525 return; 1483 return;
@@ -1539,8 +1497,6 @@ static void qt_unthrottle(struct tty_struct *tty)
1539 1497
1540 mutex_lock(&qt_port->lock); 1498 mutex_lock(&qt_port->lock);
1541 1499
1542 dbg("%s - port %d\n", __func__, port->number);
1543
1544 if (qt_port->RxHolding == 1) { 1500 if (qt_port->RxHolding == 1) {
1545 dbg("%s -qt_port->RxHolding == 1\n", __func__); 1501 dbg("%s -qt_port->RxHolding == 1\n", __func__);
1546 1502