diff options
author | Johan Hovold <johan@kernel.org> | 2017-01-31 11:51:09 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-01-31 17:21:38 +0100 |
commit | 6fdb7b0c0e6412a351deb1eaab0e5eb9635d6086 (patch) | |
tree | 1ec097debc278efe00381ae7c2ac2dfd85960bce /drivers/usb | |
parent | 41a2af93aeebd43daaac397b6662d5822f0742fc (diff) | |
download | op-kernel-dev-6fdb7b0c0e6412a351deb1eaab0e5eb9635d6086.zip op-kernel-dev-6fdb7b0c0e6412a351deb1eaab0e5eb9635d6086.tar.gz |
USB: serial: ark3116: use port device for info and error messages
Use the port device rather than usb device in info and error messages.
This makes sure that driver and tty port is included in the messages,
while also making them more uniform.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/ark3116.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index e3f6a4e..2779e59 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c @@ -187,10 +187,8 @@ static int ark3116_port_probe(struct usb_serial_port *port) if (priv->irda) ark3116_write_reg(serial, 0x9, 0); - dev_info(&serial->dev->dev, - "%s using %s mode\n", - KBUILD_MODNAME, - priv->irda ? "IrDA" : "RS232"); + dev_info(&port->dev, "using %s mode\n", priv->irda ? "IrDA" : "RS232"); + return 0; } @@ -326,9 +324,8 @@ static void ark3116_set_termios(struct tty_struct *tty, /* check for software flow control */ if (I_IXOFF(tty) || I_IXON(tty)) { - dev_warn(&serial->dev->dev, - "%s: don't know how to do software flow control\n", - KBUILD_MODNAME); + dev_warn(&port->dev, + "software flow control not implemented\n"); } /* Don't rewrite B0 */ @@ -616,9 +613,8 @@ static void ark3116_read_int_callback(struct urb *urb) result = usb_submit_urb(urb, GFP_ATOMIC); if (result) - dev_err(&urb->dev->dev, - "%s - Error %d submitting interrupt urb\n", - __func__, result); + dev_err(&port->dev, "failed to resubmit interrupt urb: %d\n", + result); } |