Commit f73e1ffa authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: ipaq.c: remove dbg() usage

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 689c2781
...@@ -565,7 +565,7 @@ static int ipaq_calc_num_ports(struct usb_serial *serial) ...@@ -565,7 +565,7 @@ static int ipaq_calc_num_ports(struct usb_serial *serial)
*/ */
int ipaq_num_ports = 1; 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); (int)serial->interface->cur_altsetting->desc.bNumEndpoints);
/* /*
...@@ -603,8 +603,9 @@ static int ipaq_startup(struct usb_serial *serial) ...@@ -603,8 +603,9 @@ static int ipaq_startup(struct usb_serial *serial)
return -ENODEV; return -ENODEV;
} }
dbg("%s - iPAQ module configured for %d ports", dev_dbg(&serial->dev->dev,
__FUNCTION__, serial->num_ports); "%s - iPAQ module configured for %d ports\n", __func__,
serial->num_ports);
return usb_reset_configuration(serial->dev); return usb_reset_configuration(serial->dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment