aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_ti.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-02-10 07:20:51 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-10 13:21:04 -0500
commit22a416c4e0f2179b57028e084ac0ed2c110333bd (patch)
treeb885af923a343b1e7eb45ff3bd33e3c8a4526334 /drivers/usb/serial/io_ti.c
parentf1475a00a11b07e6ac7f97971466c1bfbf491957 (diff)
USB: serial: use dev_err_console in custom write paths
Use dev_err_console in write paths for devices which can be used as a console but do not use the generic write implementation. Compile-only tested. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/io_ti.c')
-rw-r--r--drivers/usb/serial/io_ti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 65bf06aa591a..311e4bf46dee 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -1817,7 +1817,7 @@ static void edge_bulk_out_callback(struct urb *urb)
1817 __func__, status); 1817 __func__, status);
1818 return; 1818 return;
1819 default: 1819 default:
1820 dev_err(&urb->dev->dev, "%s - nonzero write bulk status " 1820 dev_err_console(port, "%s - nonzero write bulk status "
1821 "received: %d\n", __func__, status); 1821 "received: %d\n", __func__, status);
1822 } 1822 }
1823 1823
@@ -2111,7 +2111,7 @@ static void edge_send(struct tty_struct *tty)
2111 /* send the data out the bulk port */ 2111 /* send the data out the bulk port */
2112 result = usb_submit_urb(port->write_urb, GFP_ATOMIC); 2112 result = usb_submit_urb(port->write_urb, GFP_ATOMIC);
2113 if (result) { 2113 if (result) {
2114 dev_err(&port->dev, 2114 dev_err_console(port,
2115 "%s - failed submitting write urb, error %d\n", 2115 "%s - failed submitting write urb, error %d\n",
2116 __func__, result); 2116 __func__, result);
2117 edge_port->ep_write_urb_in_use = 0; 2117 edge_port->ep_write_urb_in_use = 0;