mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
Staging: quatech_usb3: 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: Rusty Russell <rusty@rustcorp.com.au> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: Kautuk Consul <consul.kautuk@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9b33da165b
commit
c471bf65f7
1 changed files with 2 additions and 2 deletions
|
@ -541,7 +541,7 @@ int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||||
dbg("port->write_urb == NULL, allocating one");
|
dbg("port->write_urb == NULL, allocating one");
|
||||||
port->write_urb = usb_alloc_urb(0, GFP_KERNEL);
|
port->write_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (!port->write_urb) {
|
if (!port->write_urb) {
|
||||||
err("Allocating write URB failed");
|
dev_err(&port->dev, "Allocating write URB failed\n");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
/* buffer same size as port0 */
|
/* buffer same size as port0 */
|
||||||
|
@ -549,7 +549,7 @@ int qt2_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||||
port->bulk_out_buffer = kmalloc(port->bulk_out_size,
|
port->bulk_out_buffer = kmalloc(port->bulk_out_size,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!port->bulk_out_buffer) {
|
if (!port->bulk_out_buffer) {
|
||||||
err("Couldn't allocate bulk_out_buffer");
|
dev_err(&port->dev, "Couldn't allocate bulk_out_buffer\n");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue