diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-02-10 07:20:51 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-10 13:21:04 -0500 |
commit | 22a416c4e0f2179b57028e084ac0ed2c110333bd (patch) | |
tree | b885af923a343b1e7eb45ff3bd33e3c8a4526334 /drivers/usb/serial/omninet.c | |
parent | f1475a00a11b07e6ac7f97971466c1bfbf491957 (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/omninet.c')
-rw-r--r-- | drivers/usb/serial/omninet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 8b8d58a2ac12..033e8afa6c77 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -254,7 +254,7 @@ static int omninet_write(struct tty_struct *tty, struct usb_serial_port *port, | |||
254 | result = usb_submit_urb(wport->write_urb, GFP_ATOMIC); | 254 | result = usb_submit_urb(wport->write_urb, GFP_ATOMIC); |
255 | if (result) { | 255 | if (result) { |
256 | set_bit(0, &wport->write_urbs_free); | 256 | set_bit(0, &wport->write_urbs_free); |
257 | dev_err(&port->dev, | 257 | dev_err_console(port, |
258 | "%s - failed submitting write urb, error %d\n", | 258 | "%s - failed submitting write urb, error %d\n", |
259 | __func__, result); | 259 | __func__, result); |
260 | } else | 260 | } else |