aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-03 19:44:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-03 19:44:12 -0400
commitc0a56a2a4a1007b93c826cc3aa2e9a8d7c7e35dd (patch)
tree4fa9c497ec0737cabe401231423bf1e0aa15dfa2 /drivers/usb/serial
parenta09aa7dda46b2beb157d3a360898bdd77566d3e7 (diff)
USB: garmin_gps.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: Johan Hovold <jhovold@gmail.com> CC: Andrew Morton <akpm@linux-foundation.org> CC: Rusty Russell <rusty@rustcorp.com.au> CC: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/garmin_gps.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c
index e8eb6347bf3a..52c079d02ca3 100644
--- a/drivers/usb/serial/garmin_gps.c
+++ b/drivers/usb/serial/garmin_gps.c
@@ -345,8 +345,6 @@ static void pkt_clear(struct garmin_data *garmin_data_p)
345 unsigned long flags; 345 unsigned long flags;
346 struct garmin_packet *result = NULL; 346 struct garmin_packet *result = NULL;
347 347
348 dbg("%s", __func__);
349
350 spin_lock_irqsave(&garmin_data_p->lock, flags); 348 spin_lock_irqsave(&garmin_data_p->lock, flags);
351 while (!list_empty(&garmin_data_p->pktlist)) { 349 while (!list_empty(&garmin_data_p->pktlist)) {
352 result = (struct garmin_packet *)garmin_data_p->pktlist.next; 350 result = (struct garmin_packet *)garmin_data_p->pktlist.next;
@@ -939,8 +937,6 @@ static int garmin_open(struct tty_struct *tty, struct usb_serial_port *port)
939 int status = 0; 937 int status = 0;
940 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port); 938 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port);
941 939
942 dbg("%s - port %d", __func__, port->number);
943
944 spin_lock_irqsave(&garmin_data_p->lock, flags); 940 spin_lock_irqsave(&garmin_data_p->lock, flags);
945 garmin_data_p->mode = initial_mode; 941 garmin_data_p->mode = initial_mode;
946 garmin_data_p->count = 0; 942 garmin_data_p->count = 0;
@@ -996,8 +992,6 @@ static void garmin_write_bulk_callback(struct urb *urb)
996 struct garmin_data *garmin_data_p = 992 struct garmin_data *garmin_data_p =
997 usb_get_serial_port_data(port); 993 usb_get_serial_port_data(port);
998 994
999 dbg("%s - port %d", __func__, port->number);
1000
1001 if (GARMIN_LAYERID_APPL == getLayerId(urb->transfer_buffer)) { 995 if (GARMIN_LAYERID_APPL == getLayerId(urb->transfer_buffer)) {
1002 996
1003 if (garmin_data_p->mode == MODE_GARMIN_SERIAL) { 997 if (garmin_data_p->mode == MODE_GARMIN_SERIAL) {
@@ -1027,9 +1021,6 @@ static int garmin_write_bulk(struct usb_serial_port *port,
1027 unsigned char *buffer; 1021 unsigned char *buffer;
1028 int status; 1022 int status;
1029 1023
1030 dbg("%s - port %d, state %d", __func__, port->number,
1031 garmin_data_p->state);
1032
1033 spin_lock_irqsave(&garmin_data_p->lock, flags); 1024 spin_lock_irqsave(&garmin_data_p->lock, flags);
1034 garmin_data_p->flags &= ~FLAGS_DROP_DATA; 1025 garmin_data_p->flags &= ~FLAGS_DROP_DATA;
1035 spin_unlock_irqrestore(&garmin_data_p->lock, flags); 1026 spin_unlock_irqrestore(&garmin_data_p->lock, flags);
@@ -1224,8 +1215,6 @@ static void garmin_read_bulk_callback(struct urb *urb)
1224 int status = urb->status; 1215 int status = urb->status;
1225 int retval; 1216 int retval;
1226 1217
1227 dbg("%s - port %d", __func__, port->number);
1228
1229 if (!serial) { 1218 if (!serial) {
1230 dbg("%s - bad serial pointer, exiting", __func__); 1219 dbg("%s - bad serial pointer, exiting", __func__);
1231 return; 1220 return;
@@ -1384,7 +1373,6 @@ static void garmin_throttle(struct tty_struct *tty)
1384 struct usb_serial_port *port = tty->driver_data; 1373 struct usb_serial_port *port = tty->driver_data;
1385 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port); 1374 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port);
1386 1375
1387 dbg("%s - port %d", __func__, port->number);
1388 /* set flag, data received will be put into a queue 1376 /* set flag, data received will be put into a queue
1389 for later processing */ 1377 for later processing */
1390 spin_lock_irq(&garmin_data_p->lock); 1378 spin_lock_irq(&garmin_data_p->lock);
@@ -1399,7 +1387,6 @@ static void garmin_unthrottle(struct tty_struct *tty)
1399 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port); 1387 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port);
1400 int status; 1388 int status;
1401 1389
1402 dbg("%s - port %d", __func__, port->number);
1403 spin_lock_irq(&garmin_data_p->lock); 1390 spin_lock_irq(&garmin_data_p->lock);
1404 garmin_data_p->flags &= ~FLAGS_THROTTLED; 1391 garmin_data_p->flags &= ~FLAGS_THROTTLED;
1405 spin_unlock_irq(&garmin_data_p->lock); 1392 spin_unlock_irq(&garmin_data_p->lock);
@@ -1441,8 +1428,6 @@ static int garmin_attach(struct usb_serial *serial)
1441 struct usb_serial_port *port = serial->port[0]; 1428 struct usb_serial_port *port = serial->port[0];
1442 struct garmin_data *garmin_data_p = NULL; 1429 struct garmin_data *garmin_data_p = NULL;
1443 1430
1444 dbg("%s", __func__);
1445
1446 garmin_data_p = kzalloc(sizeof(struct garmin_data), GFP_KERNEL); 1431 garmin_data_p = kzalloc(sizeof(struct garmin_data), GFP_KERNEL);
1447 if (garmin_data_p == NULL) { 1432 if (garmin_data_p == NULL) {
1448 dev_err(&port->dev, "%s - Out of memory\n", __func__); 1433 dev_err(&port->dev, "%s - Out of memory\n", __func__);
@@ -1471,8 +1456,6 @@ static void garmin_disconnect(struct usb_serial *serial)
1471 struct usb_serial_port *port = serial->port[0]; 1456 struct usb_serial_port *port = serial->port[0];
1472 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port); 1457 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port);
1473 1458
1474 dbg("%s", __func__);
1475
1476 usb_kill_urb(port->interrupt_in_urb); 1459 usb_kill_urb(port->interrupt_in_urb);
1477 del_timer_sync(&garmin_data_p->timer); 1460 del_timer_sync(&garmin_data_p->timer);
1478} 1461}
@@ -1483,8 +1466,6 @@ static void garmin_release(struct usb_serial *serial)
1483 struct usb_serial_port *port = serial->port[0]; 1466 struct usb_serial_port *port = serial->port[0];
1484 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port); 1467 struct garmin_data *garmin_data_p = usb_get_serial_port_data(port);
1485 1468
1486 dbg("%s", __func__);
1487
1488 kfree(garmin_data_p); 1469 kfree(garmin_data_p);
1489} 1470}
1490 1471