]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
USB: Staging: serqt_usb2: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 16:05:21 +0000 (09:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 16:08:22 +0000 (09:08 -0700)
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>
drivers/staging/serqt_usb2/serqt_usb2.c

index ae1d815e2a53910b37feec1f38d0a2f3b16e9b5b..0ec83aacee7945729d9f015dfbf96816fe16f2c7 100644 (file)
@@ -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);