aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/kl5kusb105.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-08-18 16:21:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-17 17:41:09 -0400
commitc197a8db59daf06dc5e77acd5a9681329cb22458 (patch)
treede233c5994ca98d92de6b97440d39330cbfc6938 /drivers/usb/serial/kl5kusb105.c
parent46fcaec505d957c87b2f3820314f9e4dc0631777 (diff)
USB: remove info() macro from usb/serial drivers
USB should not be having it's own printk macros, so remove info() and use the system-wide standard of dev_info() wherever possible. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/kl5kusb105.c')
-rw-r--r--drivers/usb/serial/kl5kusb105.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c
index ff3a07f5102f..573c6972fae7 100644
--- a/drivers/usb/serial/kl5kusb105.c
+++ b/drivers/usb/serial/kl5kusb105.c
@@ -183,11 +183,10 @@ static int klsi_105_chg_port_settings(struct usb_serial_port *port,
183 KLSI_TIMEOUT); 183 KLSI_TIMEOUT);
184 if (rc < 0) 184 if (rc < 0)
185 err("Change port settings failed (error = %d)", rc); 185 err("Change port settings failed (error = %d)", rc);
186 info("%s - %d byte block, baudrate %x, databits %d, u1 %d, u2 %d", 186 dev_info(&port->serial->dev->dev,
187 __func__, 187 "%d byte block, baudrate %x, databits %d, u1 %d, u2 %d\n",
188 settings->pktlen, 188 settings->pktlen, settings->baudrate, settings->databits,
189 settings->baudrate, settings->databits, 189 settings->unknown1, settings->unknown2);
190 settings->unknown1, settings->unknown2);
191 return rc; 190 return rc;
192} /* klsi_105_chg_port_settings */ 191} /* klsi_105_chg_port_settings */
193 192
@@ -215,7 +214,7 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
215 __u8 status_buf[KLSI_STATUSBUF_LEN] = { -1, -1}; 214 __u8 status_buf[KLSI_STATUSBUF_LEN] = { -1, -1};
216 __u16 status; 215 __u16 status;
217 216
218 info("%s - sending SIO Poll request", __func__); 217 dev_info(&port->serial->dev->dev, "sending SIO Poll request\n");
219 rc = usb_control_msg(port->serial->dev, 218 rc = usb_control_msg(port->serial->dev,
220 usb_rcvctrlpipe(port->serial->dev, 0), 219 usb_rcvctrlpipe(port->serial->dev, 0),
221 KL5KUSB105A_SIO_POLL, 220 KL5KUSB105A_SIO_POLL,
@@ -230,8 +229,8 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
230 else { 229 else {
231 status = get_unaligned_le16(status_buf); 230 status = get_unaligned_le16(status_buf);
232 231
233 info("%s - read status %x %x", __func__, 232 dev_info(&port->serial->dev->dev, "read status %x %x",
234 status_buf[0], status_buf[1]); 233 status_buf[0], status_buf[1]);
235 234
236 *line_state_p = klsi_105_status2linestate(status); 235 *line_state_p = klsi_105_status2linestate(status);
237 } 236 }
@@ -475,8 +474,9 @@ static void klsi_105_close(struct tty_struct *tty,
475 /* FIXME */ 474 /* FIXME */
476 /* wgg - do I need this? I think so. */ 475 /* wgg - do I need this? I think so. */
477 usb_kill_urb(port->interrupt_in_urb); 476 usb_kill_urb(port->interrupt_in_urb);
478 info("kl5kusb105 port stats: %ld bytes in, %ld bytes out", 477 dev_info(&port->serial->dev->dev,
479 priv->bytes_in, priv->bytes_out); 478 "port stats: %ld bytes in, %ld bytes out\n",
479 priv->bytes_in, priv->bytes_out);
480} /* klsi_105_close */ 480} /* klsi_105_close */
481 481
482 482
@@ -960,7 +960,8 @@ static int __init klsi_105_init(void)
960 if (retval) 960 if (retval)
961 goto failed_usb_register; 961 goto failed_usb_register;
962 962
963 info(DRIVER_DESC " " DRIVER_VERSION); 963 printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
964 DRIVER_DESC "\n");
964 return 0; 965 return 0;
965failed_usb_register: 966failed_usb_register:
966 usb_serial_deregister(&kl5kusb105d_device); 967 usb_serial_deregister(&kl5kusb105d_device);