Skip to content

Commit

Permalink
USB: ipaq.c: remove dbg() usage
Browse files Browse the repository at this point in the history
dbg() is a usb-serial specific macro.  This patch converts
the ipaq.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.

CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Johan Hovold <jhovold@gmail.com>
CC: Alan Stern <stern@rowland.harvard.edu>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed May 15, 2012
1 parent 689c278 commit f73e1ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/usb/serial/ipaq.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ static int ipaq_calc_num_ports(struct usb_serial *serial)
*/
int ipaq_num_ports = 1;

dbg("%s - numberofendpoints: %d", __FUNCTION__,
dev_dbg(&serial->dev->dev, "%s - numberofendpoints: %d\n", __func__,
(int)serial->interface->cur_altsetting->desc.bNumEndpoints);

/*
Expand Down Expand Up @@ -603,8 +603,9 @@ static int ipaq_startup(struct usb_serial *serial)
return -ENODEV;
}

dbg("%s - iPAQ module configured for %d ports",
__FUNCTION__, serial->num_ports);
dev_dbg(&serial->dev->dev,
"%s - iPAQ module configured for %d ports\n", __func__,
serial->num_ports);

return usb_reset_configuration(serial->dev);
}
Expand Down

0 comments on commit f73e1ff

Please sign in to comment.