summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-24 09:05:21 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-24 09:05:21 -0700
commit22fa2fe0a496b6a0c0a75df862cfa7269babcb74 (patch)
tree4da0af11c309b491b87ed59da05ce03713f3bc67
parentc471bf65f78fc6841a2c59b1e9377b6b8d40965f (diff)
downloadlinux-3.10-22fa2fe0a496b6a0c0a75df862cfa7269babcb74.tar.gz
linux-3.10-22fa2fe0a496b6a0c0a75df862cfa7269babcb74.tar.bz2
linux-3.10-22fa2fe0a496b6a0c0a75df862cfa7269babcb74.zip
Staging: serqt_usb2: remove err() usage
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/serqt_usb2/serqt_usb2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c
index ae1d815e2a5..0ec83aacee7 100644
--- a/drivers/staging/serqt_usb2/serqt_usb2.c
+++ b/drivers/staging/serqt_usb2/serqt_usb2.c
@@ -1559,8 +1559,9 @@ static void qt_unthrottle(struct tty_struct *tty)
qt_read_bulk_callback, port);
result = usb_submit_urb(port->read_urb, GFP_ATOMIC);
if (result)
- err("%s - failed restarting read urb, error %d",
- __func__, result);
+ dev_err(&port->dev,
+ "%s - failed restarting read urb, error %d\n",
+ __func__, result);
}
}
mutex_unlock(&qt_port->lock);