diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 19:27:20 -0400 |
commit | f73e1ffa27434772f57a9a7daaa508d06c56fddf (patch) | |
tree | f587d2041ef4585982b2b5423323706e77fd636b /drivers/usb/serial/ipaq.c | |
parent | 689c2781ee9d16069a436964f014ffc260af99e5 (diff) |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/ipaq.c')
-rw-r--r-- | drivers/usb/serial/ipaq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index bf440b12523c..c85a7eb87d4e 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
@@ -565,7 +565,7 @@ static int ipaq_calc_num_ports(struct usb_serial *serial) | |||
565 | */ | 565 | */ |
566 | int ipaq_num_ports = 1; | 566 | int ipaq_num_ports = 1; |
567 | 567 | ||
568 | dbg("%s - numberofendpoints: %d", __FUNCTION__, | 568 | dev_dbg(&serial->dev->dev, "%s - numberofendpoints: %d\n", __func__, |
569 | (int)serial->interface->cur_altsetting->desc.bNumEndpoints); | 569 | (int)serial->interface->cur_altsetting->desc.bNumEndpoints); |
570 | 570 | ||
571 | /* | 571 | /* |
@@ -603,8 +603,9 @@ static int ipaq_startup(struct usb_serial *serial) | |||
603 | return -ENODEV; | 603 | return -ENODEV; |
604 | } | 604 | } |
605 | 605 | ||
606 | dbg("%s - iPAQ module configured for %d ports", | 606 | dev_dbg(&serial->dev->dev, |
607 | __FUNCTION__, serial->num_ports); | 607 | "%s - iPAQ module configured for %d ports\n", __func__, |
608 | serial->num_ports); | ||
608 | 609 | ||
609 | return usb_reset_configuration(serial->dev); | 610 | return usb_reset_configuration(serial->dev); |
610 | } | 611 | } |