Commit 8b0725c0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: powermate.c: remove dbg() usage

dbg() was a very old USB-specific macro that should no longer
be used. This patch removes it from being used in the driver
and uses dev_dbg() instead.

CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c4f0bbcd
...@@ -85,6 +85,7 @@ static void powermate_config_complete(struct urb *urb); ...@@ -85,6 +85,7 @@ static void powermate_config_complete(struct urb *urb);
static void powermate_irq(struct urb *urb) static void powermate_irq(struct urb *urb)
{ {
struct powermate_device *pm = urb->context; struct powermate_device *pm = urb->context;
struct device *dev = &pm->input->dev;
int retval; int retval;
switch (urb->status) { switch (urb->status) {
...@@ -95,10 +96,12 @@ static void powermate_irq(struct urb *urb) ...@@ -95,10 +96,12 @@ static void powermate_irq(struct urb *urb)
case -ENOENT: case -ENOENT:
case -ESHUTDOWN: case -ESHUTDOWN:
/* this urb is terminated, clean up */ /* this urb is terminated, clean up */
dbg("%s - urb shutting down with status: %d", __func__, urb->status); dev_dbg(dev, "%s - urb shutting down with status: %d\n",
__func__, urb->status);
return; return;
default: default:
dbg("%s - nonzero urb status received: %d", __func__, urb->status); dev_dbg(dev, "%s - nonzero urb status received: %d\n",
__func__, urb->status);
goto exit; goto exit;
} }
...@@ -110,8 +113,7 @@ static void powermate_irq(struct urb *urb) ...@@ -110,8 +113,7 @@ static void powermate_irq(struct urb *urb)
exit: exit:
retval = usb_submit_urb (urb, GFP_ATOMIC); retval = usb_submit_urb (urb, GFP_ATOMIC);
if (retval) if (retval)
dev_err(&pm->input->dev, dev_err(dev, "%s - usb_submit_urb failed with result: %d\n",
"%s - usb_submit_urb failed with result: %d\n",
__func__, retval); __func__, retval);
} }
......
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