Commit 0a3fd536 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: appledisplay.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: Andrew Morton <akpm@linux-foundation.org>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: Mike Frysinger <vapier@gentoo.org>
CC: Arun Sharma <asharma@fb.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b6d8232
...@@ -88,6 +88,7 @@ static struct workqueue_struct *wq; ...@@ -88,6 +88,7 @@ static struct workqueue_struct *wq;
static void appledisplay_complete(struct urb *urb) static void appledisplay_complete(struct urb *urb)
{ {
struct appledisplay *pdata = urb->context; struct appledisplay *pdata = urb->context;
struct device *dev = &pdata->udev->dev;
unsigned long flags; unsigned long flags;
int status = urb->status; int status = urb->status;
int retval; int retval;
...@@ -97,18 +98,18 @@ static void appledisplay_complete(struct urb *urb) ...@@ -97,18 +98,18 @@ static void appledisplay_complete(struct urb *urb)
/* success */ /* success */
break; break;
case -EOVERFLOW: case -EOVERFLOW:
printk(KERN_ERR "appletouch: OVERFLOW with data " dev_err(dev,
"length %d, actual length is %d\n", "OVERFLOW with data length %d, actual length is %d\n",
ACD_URB_BUFFER_LEN, pdata->urb->actual_length); ACD_URB_BUFFER_LEN, pdata->urb->actual_length);
case -ECONNRESET: case -ECONNRESET:
case -ENOENT: case -ENOENT:
case -ESHUTDOWN: case -ESHUTDOWN:
/* This urb is terminated, clean up */ /* This urb is terminated, clean up */
dbg("%s - urb shuttingdown with status: %d", dev_dbg(dev, "%s - urb shuttingdown with status: %d\n",
__func__, status); __func__, status);
return; return;
default: default:
dbg("%s - nonzero urb status received: %d", dev_dbg(dev, "%s - nonzero urb status received: %d/n",
__func__, status); __func__, status);
goto exit; goto exit;
} }
...@@ -132,8 +133,7 @@ static void appledisplay_complete(struct urb *urb) ...@@ -132,8 +133,7 @@ static void appledisplay_complete(struct urb *urb)
exit: exit:
retval = usb_submit_urb(pdata->urb, GFP_ATOMIC); retval = usb_submit_urb(pdata->urb, GFP_ATOMIC);
if (retval) { if (retval) {
dev_err(&pdata->udev->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