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/mos7840.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/mos7840.c')
-rw-r--r-- | drivers/usb/serial/mos7840.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 03b5e249e95e..19b11cece6ba 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -1509,7 +1509,7 @@ static int mos7840_write(struct tty_struct *tty, struct usb_serial_port *port, | |||
1509 | kmalloc(URB_TRANSFER_BUFFER_SIZE, GFP_KERNEL); | 1509 | kmalloc(URB_TRANSFER_BUFFER_SIZE, GFP_KERNEL); |
1510 | 1510 | ||
1511 | if (urb->transfer_buffer == NULL) { | 1511 | if (urb->transfer_buffer == NULL) { |
1512 | dev_err(&port->dev, "%s no more kernel memory...\n", | 1512 | dev_err_console(port, "%s no more kernel memory...\n", |
1513 | __func__); | 1513 | __func__); |
1514 | goto exit; | 1514 | goto exit; |
1515 | } | 1515 | } |
@@ -1535,7 +1535,7 @@ static int mos7840_write(struct tty_struct *tty, struct usb_serial_port *port, | |||
1535 | 1535 | ||
1536 | if (status) { | 1536 | if (status) { |
1537 | mos7840_port->busy[i] = 0; | 1537 | mos7840_port->busy[i] = 0; |
1538 | dev_err(&port->dev, "%s - usb_submit_urb(write bulk) failed " | 1538 | dev_err_console(port, "%s - usb_submit_urb(write bulk) failed " |
1539 | "with status = %d\n", __func__, status); | 1539 | "with status = %d\n", __func__, status); |
1540 | bytes_sent = status; | 1540 | bytes_sent = status; |
1541 | goto exit; | 1541 | goto exit; |