aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-02-10 07:20:50 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-10 13:21:04 -0500
commitf1475a00a11b07e6ac7f97971466c1bfbf491957 (patch)
treec09e56e7d2c3891a36edd3a2037804f8c2a95ca3 /drivers/usb/serial
parent548dd4b6da8a8e428453d55f7fa7b8a46498d147 (diff)
USB: serial: use dev_err_console in generic write
Use dev_err_console in write path so that an error at least gets reported once. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/generic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index e129fcd69fd..2a2fa2d0489 100644
--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -217,10 +217,8 @@ retry:
217 clear_bit(i, &port->write_urbs_free); 217 clear_bit(i, &port->write_urbs_free);
218 result = usb_submit_urb(urb, GFP_ATOMIC); 218 result = usb_submit_urb(urb, GFP_ATOMIC);
219 if (result) { 219 if (result) {
220 if (!port->port.console) { 220 dev_err_console(port, "%s - error submitting urb: %d\n",
221 dev_err(&port->dev, "%s - error submitting urb: %d\n",
222 __func__, result); 221 __func__, result);
223 }
224 set_bit(i, &port->write_urbs_free); 222 set_bit(i, &port->write_urbs_free);
225 spin_lock_irqsave(&port->lock, flags); 223 spin_lock_irqsave(&port->lock, flags);
226 port->tx_bytes -= count; 224 port->tx_bytes -= count;