Commit c197a8db authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 46fcaec5
...@@ -187,7 +187,7 @@ static int belkin_sa_startup(struct usb_serial *serial) ...@@ -187,7 +187,7 @@ static int belkin_sa_startup(struct usb_serial *serial)
/* see comments at top of file */ /* see comments at top of file */
priv->bad_flow_control = priv->bad_flow_control =
(le16_to_cpu(dev->descriptor.bcdDevice) <= 0x0206) ? 1 : 0; (le16_to_cpu(dev->descriptor.bcdDevice) <= 0x0206) ? 1 : 0;
info("bcdDevice: %04x, bfc: %d", dev_info(&dev->dev, "bcdDevice: %04x, bfc: %d\n",
le16_to_cpu(dev->descriptor.bcdDevice), le16_to_cpu(dev->descriptor.bcdDevice),
priv->bad_flow_control); priv->bad_flow_control);
...@@ -577,7 +577,8 @@ static int __init belkin_sa_init(void) ...@@ -577,7 +577,8 @@ static int __init belkin_sa_init(void)
retval = usb_register(&belkin_driver); retval = usb_register(&belkin_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&belkin_device); usb_serial_deregister(&belkin_device);
......
...@@ -753,7 +753,8 @@ static int __init cp2101_init(void) ...@@ -753,7 +753,8 @@ static int __init cp2101_init(void)
} }
/* Success */ /* Success */
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
} }
......
...@@ -499,8 +499,9 @@ static int __init cyberjack_init(void) ...@@ -499,8 +499,9 @@ static int __init cyberjack_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_VERSION " " DRIVER_AUTHOR); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION " "
info(DRIVER_DESC); DRIVER_AUTHOR "\n");
printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -1658,7 +1658,8 @@ static int __init cypress_init(void) ...@@ -1658,7 +1658,8 @@ static int __init cypress_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -1854,7 +1854,8 @@ static int __init digi_init(void) ...@@ -1854,7 +1854,8 @@ static int __init digi_init(void)
retval = usb_register(&digi_driver); retval = usb_register(&digi_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_VERSION ":" DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&digi_acceleport_4_device); usb_serial_deregister(&digi_acceleport_4_device);
......
...@@ -519,7 +519,8 @@ static int __init empeg_init(void) ...@@ -519,7 +519,8 @@ static int __init empeg_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_VERSION ":" DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -1154,7 +1154,7 @@ static void ftdi_determine_type(struct usb_serial_port *port) ...@@ -1154,7 +1154,7 @@ static void ftdi_determine_type(struct usb_serial_port *port)
/* Assume its an FT232R */ /* Assume its an FT232R */
priv->chip_type = FT232RL; priv->chip_type = FT232RL;
} }
info("Detected %s", ftdi_chip_name[priv->chip_type]); dev_info(&udev->dev, "Detected %s\n", ftdi_chip_name[priv->chip_type]);
} }
...@@ -1410,7 +1410,8 @@ static int ftdi_jtag_probe(struct usb_serial *serial) ...@@ -1410,7 +1410,8 @@ static int ftdi_jtag_probe(struct usb_serial *serial)
dbg("%s", __func__); dbg("%s", __func__);
if (interface == udev->actconfig->interface[0]) { if (interface == udev->actconfig->interface[0]) {
info("Ignoring serial port reserved for JTAG"); dev_info(&udev->dev,
"Ignoring serial port reserved for JTAG\n");
return -ENODEV; return -ENODEV;
} }
...@@ -1428,7 +1429,8 @@ static int ftdi_mtxorb_hack_setup(struct usb_serial *serial) ...@@ -1428,7 +1429,8 @@ static int ftdi_mtxorb_hack_setup(struct usb_serial *serial)
if (ep->enabled && ep_desc->wMaxPacketSize == 0) { if (ep->enabled && ep_desc->wMaxPacketSize == 0) {
ep_desc->wMaxPacketSize = cpu_to_le16(0x40); ep_desc->wMaxPacketSize = cpu_to_le16(0x40);
info("Fixing invalid wMaxPacketSize on read pipe"); dev_info(&serial->dev->dev,
"Fixing invalid wMaxPacketSize on read pipe\n");
} }
return 0; return 0;
...@@ -2426,7 +2428,8 @@ static int __init ftdi_init(void) ...@@ -2426,7 +2428,8 @@ static int __init ftdi_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_VERSION ":" DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&ftdi_sio_device); usb_serial_deregister(&ftdi_sio_device);
......
...@@ -1585,7 +1585,8 @@ static int __init garmin_init(void) ...@@ -1585,7 +1585,8 @@ static int __init garmin_init(void)
retval = usb_register(&garmin_driver); retval = usb_register(&garmin_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -63,7 +63,8 @@ static int __init hp49gp_init(void) ...@@ -63,7 +63,8 @@ static int __init hp49gp_init(void)
retval = usb_register(&hp49gp_driver); retval = usb_register(&hp49gp_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&hp49gp_device); usb_serial_deregister(&hp49gp_device);
......
...@@ -3253,7 +3253,8 @@ static int __init edgeport_init(void) ...@@ -3253,7 +3253,8 @@ static int __init edgeport_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
atomic_set(&CmdUrbs, 0); atomic_set(&CmdUrbs, 0);
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -2978,7 +2978,8 @@ static int __init edgeport_init(void) ...@@ -2978,7 +2978,8 @@ static int __init edgeport_init(void)
retval = usb_register(&io_driver); retval = usb_register(&io_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&edgeport_2port_device); usb_serial_deregister(&edgeport_2port_device);
......
...@@ -976,7 +976,6 @@ static int __init ipaq_init(void) ...@@ -976,7 +976,6 @@ static int __init ipaq_init(void)
retval = usb_serial_register(&ipaq_device); retval = usb_serial_register(&ipaq_device);
if (retval) if (retval)
goto failed_usb_serial_register; goto failed_usb_serial_register;
info(DRIVER_DESC " " DRIVER_VERSION);
if (vendor) { if (vendor) {
ipaq_id_table[0].idVendor = vendor; ipaq_id_table[0].idVendor = vendor;
ipaq_id_table[0].idProduct = product; ipaq_id_table[0].idProduct = product;
...@@ -985,6 +984,8 @@ static int __init ipaq_init(void) ...@@ -985,6 +984,8 @@ static int __init ipaq_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&ipaq_device); usb_serial_deregister(&ipaq_device);
......
...@@ -485,7 +485,8 @@ static int usb_ipw_init(void) ...@@ -485,7 +485,8 @@ static int usb_ipw_init(void)
usb_serial_deregister(&ipw_device); usb_serial_deregister(&ipw_device);
return retval; return retval;
} }
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
} }
......
...@@ -602,7 +602,8 @@ static int __init ir_init(void) ...@@ -602,7 +602,8 @@ static int __init ir_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
......
...@@ -1185,7 +1185,8 @@ static int __init iuu_init(void) ...@@ -1185,7 +1185,8 @@ static int __init iuu_init(void)
retval = usb_register(&iuu_driver); retval = usb_register(&iuu_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&iuu_device); usb_serial_deregister(&iuu_device);
......
...@@ -217,7 +217,8 @@ static int __init keyspan_init(void) ...@@ -217,7 +217,8 @@ static int __init keyspan_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_VERSION ":" DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -874,7 +874,8 @@ static int __init keyspan_pda_init(void) ...@@ -874,7 +874,8 @@ static int __init keyspan_pda_init(void)
retval = usb_register(&keyspan_pda_driver); retval = usb_register(&keyspan_pda_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
#ifdef XIRCOM #ifdef XIRCOM
......
...@@ -183,11 +183,10 @@ static int klsi_105_chg_port_settings(struct usb_serial_port *port, ...@@ -183,11 +183,10 @@ static int klsi_105_chg_port_settings(struct usb_serial_port *port,
KLSI_TIMEOUT); KLSI_TIMEOUT);
if (rc < 0) if (rc < 0)
err("Change port settings failed (error = %d)", rc); err("Change port settings failed (error = %d)", rc);
info("%s - %d byte block, baudrate %x, databits %d, u1 %d, u2 %d", dev_info(&port->serial->dev->dev,
__func__, "%d byte block, baudrate %x, databits %d, u1 %d, u2 %d\n",
settings->pktlen, settings->pktlen, settings->baudrate, settings->databits,
settings->baudrate, settings->databits, settings->unknown1, settings->unknown2);
settings->unknown1, settings->unknown2);
return rc; return rc;
} /* klsi_105_chg_port_settings */ } /* klsi_105_chg_port_settings */
...@@ -215,7 +214,7 @@ static int klsi_105_get_line_state(struct usb_serial_port *port, ...@@ -215,7 +214,7 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
__u8 status_buf[KLSI_STATUSBUF_LEN] = { -1, -1}; __u8 status_buf[KLSI_STATUSBUF_LEN] = { -1, -1};
__u16 status; __u16 status;
info("%s - sending SIO Poll request", __func__); dev_info(&port->serial->dev->dev, "sending SIO Poll request\n");
rc = usb_control_msg(port->serial->dev, rc = usb_control_msg(port->serial->dev,
usb_rcvctrlpipe(port->serial->dev, 0), usb_rcvctrlpipe(port->serial->dev, 0),
KL5KUSB105A_SIO_POLL, KL5KUSB105A_SIO_POLL,
...@@ -230,8 +229,8 @@ static int klsi_105_get_line_state(struct usb_serial_port *port, ...@@ -230,8 +229,8 @@ static int klsi_105_get_line_state(struct usb_serial_port *port,
else { else {
status = get_unaligned_le16(status_buf); status = get_unaligned_le16(status_buf);
info("%s - read status %x %x", __func__, dev_info(&port->serial->dev->dev, "read status %x %x",
status_buf[0], status_buf[1]); status_buf[0], status_buf[1]);
*line_state_p = klsi_105_status2linestate(status); *line_state_p = klsi_105_status2linestate(status);
} }
...@@ -475,8 +474,9 @@ static void klsi_105_close(struct tty_struct *tty, ...@@ -475,8 +474,9 @@ static void klsi_105_close(struct tty_struct *tty,
/* FIXME */ /* FIXME */
/* wgg - do I need this? I think so. */ /* wgg - do I need this? I think so. */
usb_kill_urb(port->interrupt_in_urb); usb_kill_urb(port->interrupt_in_urb);
info("kl5kusb105 port stats: %ld bytes in, %ld bytes out", dev_info(&port->serial->dev->dev,
priv->bytes_in, priv->bytes_out); "port stats: %ld bytes in, %ld bytes out\n",
priv->bytes_in, priv->bytes_out);
} /* klsi_105_close */ } /* klsi_105_close */
...@@ -960,7 +960,8 @@ static int __init klsi_105_init(void) ...@@ -960,7 +960,8 @@ static int __init klsi_105_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&kl5kusb105d_device); usb_serial_deregister(&kl5kusb105d_device);
......
...@@ -744,8 +744,8 @@ static int __init kobil_init(void) ...@@ -744,8 +744,8 @@ static int __init kobil_init(void)
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_VERSION " " DRIVER_AUTHOR); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
info(DRIVER_DESC); DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -817,7 +817,8 @@ static int __init mct_u232_init(void) ...@@ -817,7 +817,8 @@ static int __init mct_u232_init(void)
retval = usb_register(&mct_u232_driver); retval = usb_register(&mct_u232_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&mct_u232_device); usb_serial_deregister(&mct_u232_device);
......
...@@ -1585,7 +1585,8 @@ static int __init moschip7720_init(void) ...@@ -1585,7 +1585,8 @@ static int __init moschip7720_init(void)
if (retval) if (retval)
goto failed_port_device_register; goto failed_port_device_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
/* Register with the usb */ /* Register with the usb */
retval = usb_register(&usb_driver); retval = usb_register(&usb_driver);
......
...@@ -2743,7 +2743,8 @@ static int __init moschip7840_init(void) ...@@ -2743,7 +2743,8 @@ static int __init moschip7840_init(void)
goto failed_port_device_register; goto failed_port_device_register;
dbg("%s\n", "Entring..."); dbg("%s\n", "Entring...");
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
/* Register with the usb */ /* Register with the usb */
retval = usb_register(&io_driver); retval = usb_register(&io_driver);
......
...@@ -364,7 +364,8 @@ static int __init omninet_init(void) ...@@ -364,7 +364,8 @@ static int __init omninet_init(void)
retval = usb_register(&omninet_driver); retval = usb_register(&omninet_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_VERSION ":" DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&zyxel_omninet_device); usb_serial_deregister(&zyxel_omninet_device);
......
...@@ -420,7 +420,8 @@ static int __init option_init(void) ...@@ -420,7 +420,8 @@ static int __init option_init(void)
if (retval) if (retval)
goto failed_driver_register; goto failed_driver_register;
info(DRIVER_DESC ": " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
......
...@@ -1147,7 +1147,7 @@ static int __init pl2303_init(void) ...@@ -1147,7 +1147,7 @@ static int __init pl2303_init(void)
retval = usb_register(&pl2303_driver); retval = usb_register(&pl2303_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&pl2303_device); usb_serial_deregister(&pl2303_device);
......
...@@ -250,8 +250,8 @@ static void safe_read_bulk_callback(struct urb *urb) ...@@ -250,8 +250,8 @@ static void safe_read_bulk_callback(struct urb *urb)
if (!fcs) { if (!fcs) {
int actual_length = data[length - 2] >> 2; int actual_length = data[length - 2] >> 2;
if (actual_length <= (length - 2)) { if (actual_length <= (length - 2)) {
info("%s - actual: %d", __func__, dev_info(&urb->dev->dev, "%s - actual: %d\n",
actual_length); __func__, actual_length);
tty_insert_flip_string(tty, tty_insert_flip_string(tty,
data, actual_length); data, actual_length);
tty_flip_buffer_push(tty); tty_flip_buffer_push(tty);
...@@ -428,14 +428,13 @@ static int __init safe_init(void) ...@@ -428,14 +428,13 @@ static int __init safe_init(void)
{ {
int i, retval; int i, retval;
info(DRIVER_VERSION " " DRIVER_AUTHOR); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
info(DRIVER_DESC); DRIVER_DESC "\n");
info("vendor: %x product: %x safe: %d padded: %d\n",
vendor, product, safe, padded);
/* if we have vendor / product parameters patch them into id list */ /* if we have vendor / product parameters patch them into id list */
if (vendor || product) { if (vendor || product) {
info("vendor: %x product: %x\n", vendor, product); printk(KERN_INFO KBUILD_MODNAME ": vendor: %x product: %x\n",
vendor, product);
for (i = 0; i < ARRAY_SIZE(id_table); i++) { for (i = 0; i < ARRAY_SIZE(id_table); i++) {
if (!id_table[i].idVendor && !id_table[i].idProduct) { if (!id_table[i].idVendor && !id_table[i].idProduct) {
......
...@@ -750,7 +750,8 @@ static int __init sierra_init(void) ...@@ -750,7 +750,8 @@ static int __init sierra_init(void)
if (retval) if (retval)
goto failed_driver_register; goto failed_driver_register;
info(DRIVER_DESC ": " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
......
...@@ -1054,7 +1054,8 @@ static int __init spcp8x5_init(void) ...@@ -1054,7 +1054,8 @@ static int __init spcp8x5_init(void)
retval = usb_register(&spcp8x5_driver); retval = usb_register(&spcp8x5_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&spcp8x5_device); usb_serial_deregister(&spcp8x5_device);
......
...@@ -382,7 +382,8 @@ static int __init ti_init(void) ...@@ -382,7 +382,8 @@ static int __init ti_init(void)
if (ret) if (ret)
goto failed_usb; goto failed_usb;
info(TI_DRIVER_DESC " " TI_DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " TI_DRIVER_VERSION ":"
TI_DRIVER_DESC "\n");
return 0; return 0;
......
...@@ -1160,7 +1160,7 @@ static int __init usb_serial_init(void) ...@@ -1160,7 +1160,7 @@ static int __init usb_serial_init(void)
goto exit_generic; goto exit_generic;
} }
info(DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n");
return result; return result;
...@@ -1237,7 +1237,7 @@ int usb_serial_register(struct usb_serial_driver *driver) ...@@ -1237,7 +1237,7 @@ int usb_serial_register(struct usb_serial_driver *driver)
retval, driver->description); retval, driver->description);
list_del(&driver->driver_list); list_del(&driver->driver_list);
} else } else
info("USB Serial support registered for %s", printk(KERN_INFO "USB Serial support registered for %s\n",
driver->description); driver->description);
return retval; return retval;
...@@ -1248,7 +1248,8 @@ EXPORT_SYMBOL_GPL(usb_serial_register); ...@@ -1248,7 +1248,8 @@ EXPORT_SYMBOL_GPL(usb_serial_register);
void usb_serial_deregister(struct usb_serial_driver *device) void usb_serial_deregister(struct usb_serial_driver *device)
{ {
/* must be called with BKL held */ /* must be called with BKL held */
info("USB Serial deregistering driver %s", device->description); printk(KERN_INFO "USB Serial deregistering driver %s\n",
device->description);
list_del(&device->driver_list); list_del(&device->driver_list);
usb_serial_bus_deregister(device); usb_serial_bus_deregister(device);
} }
......
...@@ -971,11 +971,14 @@ static int __init visor_init(void) ...@@ -971,11 +971,14 @@ static int __init visor_init(void)
break; break;
} }
} }
info( printk(KERN_INFO KBUILD_MODNAME
"Untested USB device specified at time of module insertion"); ": Untested USB device specified at time of module insertion\n");
info("Warning: This is not guaranteed to work"); printk(KERN_INFO KBUILD_MODNAME
info("Using a newer kernel is preferred to this method"); ": Warning: This is not guaranteed to work\n");
info("Adding Palm OS protocol 4.x support for unknown device: 0x%x/0x%x", printk(KERN_INFO KBUILD_MODNAME
": Using a newer kernel is preferred to this method\n");
printk(KERN_INFO KBUILD_MODNAME
": Adding Palm OS protocol 4.x support for unknown device: 0x%x/0x%x\n",
vendor, product); vendor, product);
} }
retval = usb_serial_register(&handspring_device); retval = usb_serial_register(&handspring_device);
...@@ -990,7 +993,7 @@ static int __init visor_init(void) ...@@ -990,7 +993,7 @@ static int __init visor_init(void)
retval = usb_register(&visor_driver); retval = usb_register(&visor_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
......
...@@ -452,8 +452,9 @@ static int whiteheat_attach(struct usb_serial *serial) ...@@ -452,8 +452,9 @@ static int whiteheat_attach(struct usb_serial *serial)
hw_info = (struct whiteheat_hw_info *)&result[1]; hw_info = (struct whiteheat_hw_info *)&result[1];
info("%s: Driver %s: Firmware v%d.%02d", serial->type->description, dev_info(&serial->dev->dev, "%s: Driver %s: Firmware v%d.%02d\n",
DRIVER_VERSION, hw_info->sw_major_rev, hw_info->sw_minor_rev); serial->type->description, DRIVER_VERSION,
hw_info->sw_major_rev, hw_info->sw_minor_rev);
for (i = 0; i < serial->num_ports; i++) { for (i = 0; i < serial->num_ports; i++) {
port = serial->port[i]; port = serial->port[i];
...@@ -1556,7 +1557,8 @@ static int __init whiteheat_init(void) ...@@ -1556,7 +1557,8 @@ static int __init whiteheat_init(void)
retval = usb_register(&whiteheat_driver); retval = usb_register(&whiteheat_driver);
if (retval) if (retval)
goto failed_usb_register; goto failed_usb_register;
info(DRIVER_DESC " " DRIVER_VERSION); printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
DRIVER_DESC "\n");
return 0; return 0;
failed_usb_register: failed_usb_register:
usb_serial_deregister(&whiteheat_device); usb_serial_deregister(&whiteheat_device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment