Commit 3a1c2a82 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: usb_wwan.c: 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: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 461863df
...@@ -725,8 +725,8 @@ int usb_wwan_resume(struct usb_serial *serial) ...@@ -725,8 +725,8 @@ int usb_wwan_resume(struct usb_serial *serial)
err = usb_submit_urb(port->interrupt_in_urb, GFP_NOIO); err = usb_submit_urb(port->interrupt_in_urb, GFP_NOIO);
dbg("Submitted interrupt URB for port %d (result %d)", i, err); dbg("Submitted interrupt URB for port %d (result %d)", i, err);
if (err < 0) { if (err < 0) {
err("%s: Error %d for interrupt URB of port%d", dev_err(&port->dev, "%s: Error %d for interrupt URB\n",
__func__, err, i); __func__, err);
goto err_out; goto err_out;
} }
} }
...@@ -747,8 +747,8 @@ int usb_wwan_resume(struct usb_serial *serial) ...@@ -747,8 +747,8 @@ int usb_wwan_resume(struct usb_serial *serial)
urb = portdata->in_urbs[j]; urb = portdata->in_urbs[j];
err = usb_submit_urb(urb, GFP_ATOMIC); err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) { if (err < 0) {
err("%s: Error %d for bulk URB %d", dev_err(&port->dev, "%s: Error %d for bulk URB %d\n",
__func__, err, i); __func__, err, i);
spin_unlock_irq(&intfdata->susp_lock); spin_unlock_irq(&intfdata->susp_lock);
goto err_out; goto err_out;
} }
......
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