diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-18 16:21:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-17 17:41:09 -0400 |
commit | c197a8db59daf06dc5e77acd5a9681329cb22458 (patch) | |
tree | de233c5994ca98d92de6b97440d39330cbfc6938 /drivers/usb | |
parent | 46fcaec505d957c87b2f3820314f9e4dc0631777 (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')
32 files changed, 96 insertions, 63 deletions
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index 1913bc7c5f0b..bb19f1c2e0d3 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -187,7 +187,7 @@ static int belkin_sa_startup(struct usb_serial *serial) | |||
187 | /* see comments at top of file */ | 187 | /* see comments at top of file */ |
188 | priv->bad_flow_control = | 188 | priv->bad_flow_control = |
189 | (le16_to_cpu(dev->descriptor.bcdDevice) <= 0x0206) ? 1 : 0; | 189 | (le16_to_cpu(dev->descriptor.bcdDevice) <= 0x0206) ? 1 : 0; |
190 | info("bcdDevice: %04x, bfc: %d", | 190 | dev_info(&dev->dev, "bcdDevice: %04x, bfc: %d\n", |
191 | le16_to_cpu(dev->descriptor.bcdDevice), | 191 | le16_to_cpu(dev->descriptor.bcdDevice), |
192 | priv->bad_flow_control); | 192 | priv->bad_flow_control); |
193 | 193 | ||
@@ -577,7 +577,8 @@ static int __init belkin_sa_init(void) | |||
577 | retval = usb_register(&belkin_driver); | 577 | retval = usb_register(&belkin_driver); |
578 | if (retval) | 578 | if (retval) |
579 | goto failed_usb_register; | 579 | goto failed_usb_register; |
580 | info(DRIVER_DESC " " DRIVER_VERSION); | 580 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
581 | DRIVER_DESC "\n"); | ||
581 | return 0; | 582 | return 0; |
582 | failed_usb_register: | 583 | failed_usb_register: |
583 | usb_serial_deregister(&belkin_device); | 584 | usb_serial_deregister(&belkin_device); |
diff --git a/drivers/usb/serial/cp2101.c b/drivers/usb/serial/cp2101.c index 1279553381e3..8008d0bc80ad 100644 --- a/drivers/usb/serial/cp2101.c +++ b/drivers/usb/serial/cp2101.c | |||
@@ -753,7 +753,8 @@ static int __init cp2101_init(void) | |||
753 | } | 753 | } |
754 | 754 | ||
755 | /* Success */ | 755 | /* Success */ |
756 | info(DRIVER_DESC " " DRIVER_VERSION); | 756 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
757 | DRIVER_DESC "\n"); | ||
757 | return 0; | 758 | return 0; |
758 | } | 759 | } |
759 | 760 | ||
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index 94ef36c4764b..068680f9929d 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -499,8 +499,9 @@ static int __init cyberjack_init(void) | |||
499 | if (retval) | 499 | if (retval) |
500 | goto failed_usb_register; | 500 | goto failed_usb_register; |
501 | 501 | ||
502 | info(DRIVER_VERSION " " DRIVER_AUTHOR); | 502 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION " " |
503 | info(DRIVER_DESC); | 503 | DRIVER_AUTHOR "\n"); |
504 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n"); | ||
504 | 505 | ||
505 | return 0; | 506 | return 0; |
506 | failed_usb_register: | 507 | failed_usb_register: |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index f3514a91f915..e0ca809f75f5 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -1658,7 +1658,8 @@ static int __init cypress_init(void) | |||
1658 | if (retval) | 1658 | if (retval) |
1659 | goto failed_usb_register; | 1659 | goto failed_usb_register; |
1660 | 1660 | ||
1661 | info(DRIVER_DESC " " DRIVER_VERSION); | 1661 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1662 | DRIVER_DESC "\n"); | ||
1662 | return 0; | 1663 | return 0; |
1663 | 1664 | ||
1664 | failed_usb_register: | 1665 | failed_usb_register: |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 5756ac6d6c92..ebc2918719a0 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -1854,7 +1854,8 @@ static int __init digi_init(void) | |||
1854 | retval = usb_register(&digi_driver); | 1854 | retval = usb_register(&digi_driver); |
1855 | if (retval) | 1855 | if (retval) |
1856 | goto failed_usb_register; | 1856 | goto failed_usb_register; |
1857 | info(DRIVER_VERSION ":" DRIVER_DESC); | 1857 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1858 | DRIVER_DESC "\n"); | ||
1858 | return 0; | 1859 | return 0; |
1859 | failed_usb_register: | 1860 | failed_usb_register: |
1860 | usb_serial_deregister(&digi_acceleport_4_device); | 1861 | usb_serial_deregister(&digi_acceleport_4_device); |
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 1072e847280f..fdd28e940bc1 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -519,7 +519,8 @@ static int __init empeg_init(void) | |||
519 | if (retval) | 519 | if (retval) |
520 | goto failed_usb_register; | 520 | goto failed_usb_register; |
521 | 521 | ||
522 | info(DRIVER_VERSION ":" DRIVER_DESC); | 522 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
523 | DRIVER_DESC "\n"); | ||
523 | 524 | ||
524 | return 0; | 525 | return 0; |
525 | failed_usb_register: | 526 | failed_usb_register: |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 89dab5c3682c..bcadb1f4f5dd 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -1154,7 +1154,7 @@ static void ftdi_determine_type(struct usb_serial_port *port) | |||
1154 | /* Assume its an FT232R */ | 1154 | /* Assume its an FT232R */ |
1155 | priv->chip_type = FT232RL; | 1155 | priv->chip_type = FT232RL; |
1156 | } | 1156 | } |
1157 | info("Detected %s", ftdi_chip_name[priv->chip_type]); | 1157 | dev_info(&udev->dev, "Detected %s\n", ftdi_chip_name[priv->chip_type]); |
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | 1160 | ||
@@ -1410,7 +1410,8 @@ static int ftdi_jtag_probe(struct usb_serial *serial) | |||
1410 | dbg("%s", __func__); | 1410 | dbg("%s", __func__); |
1411 | 1411 | ||
1412 | if (interface == udev->actconfig->interface[0]) { | 1412 | if (interface == udev->actconfig->interface[0]) { |
1413 | info("Ignoring serial port reserved for JTAG"); | 1413 | dev_info(&udev->dev, |
1414 | "Ignoring serial port reserved for JTAG\n"); | ||
1414 | return -ENODEV; | 1415 | return -ENODEV; |
1415 | } | 1416 | } |
1416 | 1417 | ||
@@ -1428,7 +1429,8 @@ static int ftdi_mtxorb_hack_setup(struct usb_serial *serial) | |||
1428 | 1429 | ||
1429 | if (ep->enabled && ep_desc->wMaxPacketSize == 0) { | 1430 | if (ep->enabled && ep_desc->wMaxPacketSize == 0) { |
1430 | ep_desc->wMaxPacketSize = cpu_to_le16(0x40); | 1431 | ep_desc->wMaxPacketSize = cpu_to_le16(0x40); |
1431 | info("Fixing invalid wMaxPacketSize on read pipe"); | 1432 | dev_info(&serial->dev->dev, |
1433 | "Fixing invalid wMaxPacketSize on read pipe\n"); | ||
1432 | } | 1434 | } |
1433 | 1435 | ||
1434 | return 0; | 1436 | return 0; |
@@ -2426,7 +2428,8 @@ static int __init ftdi_init(void) | |||
2426 | if (retval) | 2428 | if (retval) |
2427 | goto failed_usb_register; | 2429 | goto failed_usb_register; |
2428 | 2430 | ||
2429 | info(DRIVER_VERSION ":" DRIVER_DESC); | 2431 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
2432 | DRIVER_DESC "\n"); | ||
2430 | return 0; | 2433 | return 0; |
2431 | failed_usb_register: | 2434 | failed_usb_register: |
2432 | usb_serial_deregister(&ftdi_sio_device); | 2435 | usb_serial_deregister(&ftdi_sio_device); |
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index 2ad0569bcf19..8e6a66e38db2 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c | |||
@@ -1585,7 +1585,8 @@ static int __init garmin_init(void) | |||
1585 | retval = usb_register(&garmin_driver); | 1585 | retval = usb_register(&garmin_driver); |
1586 | if (retval) | 1586 | if (retval) |
1587 | goto failed_usb_register; | 1587 | goto failed_usb_register; |
1588 | info(DRIVER_DESC " " DRIVER_VERSION); | 1588 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1589 | DRIVER_DESC "\n"); | ||
1589 | 1590 | ||
1590 | return 0; | 1591 | return 0; |
1591 | failed_usb_register: | 1592 | failed_usb_register: |
diff --git a/drivers/usb/serial/hp4x.c b/drivers/usb/serial/hp4x.c index ab905869e959..431329275133 100644 --- a/drivers/usb/serial/hp4x.c +++ b/drivers/usb/serial/hp4x.c | |||
@@ -63,7 +63,8 @@ static int __init hp49gp_init(void) | |||
63 | retval = usb_register(&hp49gp_driver); | 63 | retval = usb_register(&hp49gp_driver); |
64 | if (retval) | 64 | if (retval) |
65 | goto failed_usb_register; | 65 | goto failed_usb_register; |
66 | info(DRIVER_DESC " " DRIVER_VERSION); | 66 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
67 | DRIVER_DESC "\n"); | ||
67 | return 0; | 68 | return 0; |
68 | failed_usb_register: | 69 | failed_usb_register: |
69 | usb_serial_deregister(&hp49gp_device); | 70 | usb_serial_deregister(&hp49gp_device); |
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index 611f97fd62f1..eb95efdfbe8b 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -3253,7 +3253,8 @@ static int __init edgeport_init(void) | |||
3253 | if (retval) | 3253 | if (retval) |
3254 | goto failed_usb_register; | 3254 | goto failed_usb_register; |
3255 | atomic_set(&CmdUrbs, 0); | 3255 | atomic_set(&CmdUrbs, 0); |
3256 | info(DRIVER_DESC " " DRIVER_VERSION); | 3256 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
3257 | DRIVER_DESC "\n"); | ||
3257 | return 0; | 3258 | return 0; |
3258 | 3259 | ||
3259 | failed_usb_register: | 3260 | failed_usb_register: |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 541dd8e6e7a2..c3cdd00ddc41 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -2978,7 +2978,8 @@ static int __init edgeport_init(void) | |||
2978 | retval = usb_register(&io_driver); | 2978 | retval = usb_register(&io_driver); |
2979 | if (retval) | 2979 | if (retval) |
2980 | goto failed_usb_register; | 2980 | goto failed_usb_register; |
2981 | info(DRIVER_DESC " " DRIVER_VERSION); | 2981 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
2982 | DRIVER_DESC "\n"); | ||
2982 | return 0; | 2983 | return 0; |
2983 | failed_usb_register: | 2984 | failed_usb_register: |
2984 | usb_serial_deregister(&edgeport_2port_device); | 2985 | usb_serial_deregister(&edgeport_2port_device); |
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index 2affa9c118b2..5108cbc64a55 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
@@ -976,7 +976,6 @@ static int __init ipaq_init(void) | |||
976 | retval = usb_serial_register(&ipaq_device); | 976 | retval = usb_serial_register(&ipaq_device); |
977 | if (retval) | 977 | if (retval) |
978 | goto failed_usb_serial_register; | 978 | goto failed_usb_serial_register; |
979 | info(DRIVER_DESC " " DRIVER_VERSION); | ||
980 | if (vendor) { | 979 | if (vendor) { |
981 | ipaq_id_table[0].idVendor = vendor; | 980 | ipaq_id_table[0].idVendor = vendor; |
982 | ipaq_id_table[0].idProduct = product; | 981 | ipaq_id_table[0].idProduct = product; |
@@ -985,6 +984,8 @@ static int __init ipaq_init(void) | |||
985 | if (retval) | 984 | if (retval) |
986 | goto failed_usb_register; | 985 | goto failed_usb_register; |
987 | 986 | ||
987 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
988 | DRIVER_DESC "\n"); | ||
988 | return 0; | 989 | return 0; |
989 | failed_usb_register: | 990 | failed_usb_register: |
990 | usb_serial_deregister(&ipaq_device); | 991 | usb_serial_deregister(&ipaq_device); |
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index 480cac27d646..3ac59a8a980f 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
@@ -485,7 +485,8 @@ static int usb_ipw_init(void) | |||
485 | usb_serial_deregister(&ipw_device); | 485 | usb_serial_deregister(&ipw_device); |
486 | return retval; | 486 | return retval; |
487 | } | 487 | } |
488 | info(DRIVER_DESC " " DRIVER_VERSION); | 488 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
489 | DRIVER_DESC "\n"); | ||
489 | return 0; | 490 | return 0; |
490 | } | 491 | } |
491 | 492 | ||
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 45d4043e04ab..b679a556b98d 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -602,7 +602,8 @@ static int __init ir_init(void) | |||
602 | if (retval) | 602 | if (retval) |
603 | goto failed_usb_register; | 603 | goto failed_usb_register; |
604 | 604 | ||
605 | info(DRIVER_DESC " " DRIVER_VERSION); | 605 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
606 | DRIVER_DESC "\n"); | ||
606 | 607 | ||
607 | return 0; | 608 | return 0; |
608 | 609 | ||
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 53710aa7eadd..e320972cb227 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -1185,7 +1185,8 @@ static int __init iuu_init(void) | |||
1185 | retval = usb_register(&iuu_driver); | 1185 | retval = usb_register(&iuu_driver); |
1186 | if (retval) | 1186 | if (retval) |
1187 | goto failed_usb_register; | 1187 | goto failed_usb_register; |
1188 | info(DRIVER_DESC " " DRIVER_VERSION); | 1188 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1189 | DRIVER_DESC "\n"); | ||
1189 | return 0; | 1190 | return 0; |
1190 | failed_usb_register: | 1191 | failed_usb_register: |
1191 | usb_serial_deregister(&iuu_device); | 1192 | usb_serial_deregister(&iuu_device); |
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 15447af48691..9878c0fb3859 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -217,7 +217,8 @@ static int __init keyspan_init(void) | |||
217 | if (retval) | 217 | if (retval) |
218 | goto failed_usb_register; | 218 | goto failed_usb_register; |
219 | 219 | ||
220 | info(DRIVER_VERSION ":" DRIVER_DESC); | 220 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
221 | DRIVER_DESC "\n"); | ||
221 | 222 | ||
222 | return 0; | 223 | return 0; |
223 | failed_usb_register: | 224 | failed_usb_register: |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index 99e9a14c5bf6..2928ba844394 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -874,7 +874,8 @@ static int __init keyspan_pda_init(void) | |||
874 | retval = usb_register(&keyspan_pda_driver); | 874 | retval = usb_register(&keyspan_pda_driver); |
875 | if (retval) | 875 | if (retval) |
876 | goto failed_usb_register; | 876 | goto failed_usb_register; |
877 | info(DRIVER_DESC " " DRIVER_VERSION); | 877 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
878 | DRIVER_DESC "\n"); | ||
878 | return 0; | 879 | return 0; |
879 | failed_usb_register: | 880 | failed_usb_register: |
880 | #ifdef XIRCOM | 881 | #ifdef XIRCOM |
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; |
965 | failed_usb_register: | 966 | failed_usb_register: |
966 | usb_serial_deregister(&kl5kusb105d_device); | 967 | usb_serial_deregister(&kl5kusb105d_device); |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index cfcf37c2b957..6286baad9392 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -744,8 +744,8 @@ static int __init kobil_init(void) | |||
744 | if (retval) | 744 | if (retval) |
745 | goto failed_usb_register; | 745 | goto failed_usb_register; |
746 | 746 | ||
747 | info(DRIVER_VERSION " " DRIVER_AUTHOR); | 747 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
748 | info(DRIVER_DESC); | 748 | DRIVER_DESC "\n"); |
749 | 749 | ||
750 | return 0; | 750 | return 0; |
751 | failed_usb_register: | 751 | failed_usb_register: |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index 9b2cef81cde0..29fa66ea2d21 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -817,7 +817,8 @@ static int __init mct_u232_init(void) | |||
817 | retval = usb_register(&mct_u232_driver); | 817 | retval = usb_register(&mct_u232_driver); |
818 | if (retval) | 818 | if (retval) |
819 | goto failed_usb_register; | 819 | goto failed_usb_register; |
820 | info(DRIVER_DESC " " DRIVER_VERSION); | 820 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
821 | DRIVER_DESC "\n"); | ||
821 | return 0; | 822 | return 0; |
822 | failed_usb_register: | 823 | failed_usb_register: |
823 | usb_serial_deregister(&mct_u232_device); | 824 | usb_serial_deregister(&mct_u232_device); |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 7b538caec37f..5711aa55d24b 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -1585,7 +1585,8 @@ static int __init moschip7720_init(void) | |||
1585 | if (retval) | 1585 | if (retval) |
1586 | goto failed_port_device_register; | 1586 | goto failed_port_device_register; |
1587 | 1587 | ||
1588 | info(DRIVER_DESC " " DRIVER_VERSION); | 1588 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1589 | DRIVER_DESC "\n"); | ||
1589 | 1590 | ||
1590 | /* Register with the usb */ | 1591 | /* Register with the usb */ |
1591 | retval = usb_register(&usb_driver); | 1592 | retval = usb_register(&usb_driver); |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 60543d79ef56..d5f682626e71 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -2743,7 +2743,8 @@ static int __init moschip7840_init(void) | |||
2743 | goto failed_port_device_register; | 2743 | goto failed_port_device_register; |
2744 | 2744 | ||
2745 | dbg("%s\n", "Entring..."); | 2745 | dbg("%s\n", "Entring..."); |
2746 | info(DRIVER_DESC " " DRIVER_VERSION); | 2746 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
2747 | DRIVER_DESC "\n"); | ||
2747 | 2748 | ||
2748 | /* Register with the usb */ | 2749 | /* Register with the usb */ |
2749 | retval = usb_register(&io_driver); | 2750 | retval = usb_register(&io_driver); |
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index c4d70b0f1e48..9890f26cd91d 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -364,7 +364,8 @@ static int __init omninet_init(void) | |||
364 | retval = usb_register(&omninet_driver); | 364 | retval = usb_register(&omninet_driver); |
365 | if (retval) | 365 | if (retval) |
366 | goto failed_usb_register; | 366 | goto failed_usb_register; |
367 | info(DRIVER_VERSION ":" DRIVER_DESC); | 367 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
368 | DRIVER_DESC "\n"); | ||
368 | return 0; | 369 | return 0; |
369 | failed_usb_register: | 370 | failed_usb_register: |
370 | usb_serial_deregister(&zyxel_omninet_device); | 371 | usb_serial_deregister(&zyxel_omninet_device); |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 0d18a40a154e..3d87eabcd922 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -420,7 +420,8 @@ static int __init option_init(void) | |||
420 | if (retval) | 420 | if (retval) |
421 | goto failed_driver_register; | 421 | goto failed_driver_register; |
422 | 422 | ||
423 | info(DRIVER_DESC ": " DRIVER_VERSION); | 423 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
424 | DRIVER_DESC "\n"); | ||
424 | 425 | ||
425 | return 0; | 426 | return 0; |
426 | 427 | ||
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 908437847165..491c8857b644 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -1147,7 +1147,7 @@ static int __init pl2303_init(void) | |||
1147 | retval = usb_register(&pl2303_driver); | 1147 | retval = usb_register(&pl2303_driver); |
1148 | if (retval) | 1148 | if (retval) |
1149 | goto failed_usb_register; | 1149 | goto failed_usb_register; |
1150 | info(DRIVER_DESC); | 1150 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n"); |
1151 | return 0; | 1151 | return 0; |
1152 | failed_usb_register: | 1152 | failed_usb_register: |
1153 | usb_serial_deregister(&pl2303_device); | 1153 | usb_serial_deregister(&pl2303_device); |
diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c index 72903ac9f5c0..40cff61cb4a2 100644 --- a/drivers/usb/serial/safe_serial.c +++ b/drivers/usb/serial/safe_serial.c | |||
@@ -250,8 +250,8 @@ static void safe_read_bulk_callback(struct urb *urb) | |||
250 | if (!fcs) { | 250 | if (!fcs) { |
251 | int actual_length = data[length - 2] >> 2; | 251 | int actual_length = data[length - 2] >> 2; |
252 | if (actual_length <= (length - 2)) { | 252 | if (actual_length <= (length - 2)) { |
253 | info("%s - actual: %d", __func__, | 253 | dev_info(&urb->dev->dev, "%s - actual: %d\n", |
254 | actual_length); | 254 | __func__, actual_length); |
255 | tty_insert_flip_string(tty, | 255 | tty_insert_flip_string(tty, |
256 | data, actual_length); | 256 | data, actual_length); |
257 | tty_flip_buffer_push(tty); | 257 | tty_flip_buffer_push(tty); |
@@ -428,14 +428,13 @@ static int __init safe_init(void) | |||
428 | { | 428 | { |
429 | int i, retval; | 429 | int i, retval; |
430 | 430 | ||
431 | info(DRIVER_VERSION " " DRIVER_AUTHOR); | 431 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
432 | info(DRIVER_DESC); | 432 | DRIVER_DESC "\n"); |
433 | info("vendor: %x product: %x safe: %d padded: %d\n", | ||
434 | vendor, product, safe, padded); | ||
435 | 433 | ||
436 | /* if we have vendor / product parameters patch them into id list */ | 434 | /* if we have vendor / product parameters patch them into id list */ |
437 | if (vendor || product) { | 435 | if (vendor || product) { |
438 | info("vendor: %x product: %x\n", vendor, product); | 436 | printk(KERN_INFO KBUILD_MODNAME ": vendor: %x product: %x\n", |
437 | vendor, product); | ||
439 | 438 | ||
440 | for (i = 0; i < ARRAY_SIZE(id_table); i++) { | 439 | for (i = 0; i < ARRAY_SIZE(id_table); i++) { |
441 | if (!id_table[i].idVendor && !id_table[i].idProduct) { | 440 | if (!id_table[i].idVendor && !id_table[i].idProduct) { |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 6794e5721df6..0f2b67244af6 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -750,7 +750,8 @@ static int __init sierra_init(void) | |||
750 | if (retval) | 750 | if (retval) |
751 | goto failed_driver_register; | 751 | goto failed_driver_register; |
752 | 752 | ||
753 | info(DRIVER_DESC ": " DRIVER_VERSION); | 753 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
754 | DRIVER_DESC "\n"); | ||
754 | 755 | ||
755 | return 0; | 756 | return 0; |
756 | 757 | ||
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 1533d6e12238..96aeec746191 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -1054,7 +1054,8 @@ static int __init spcp8x5_init(void) | |||
1054 | retval = usb_register(&spcp8x5_driver); | 1054 | retval = usb_register(&spcp8x5_driver); |
1055 | if (retval) | 1055 | if (retval) |
1056 | goto failed_usb_register; | 1056 | goto failed_usb_register; |
1057 | info(DRIVER_DESC " " DRIVER_VERSION); | 1057 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1058 | DRIVER_DESC "\n"); | ||
1058 | return 0; | 1059 | return 0; |
1059 | failed_usb_register: | 1060 | failed_usb_register: |
1060 | usb_serial_deregister(&spcp8x5_device); | 1061 | usb_serial_deregister(&spcp8x5_device); |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index a9523b8348da..31c42d1cae13 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -382,7 +382,8 @@ static int __init ti_init(void) | |||
382 | if (ret) | 382 | if (ret) |
383 | goto failed_usb; | 383 | goto failed_usb; |
384 | 384 | ||
385 | info(TI_DRIVER_DESC " " TI_DRIVER_VERSION); | 385 | printk(KERN_INFO KBUILD_MODNAME ": " TI_DRIVER_VERSION ":" |
386 | TI_DRIVER_DESC "\n"); | ||
386 | 387 | ||
387 | return 0; | 388 | return 0; |
388 | 389 | ||
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index e7d4246027b2..92ba4f7361e4 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -1160,7 +1160,7 @@ static int __init usb_serial_init(void) | |||
1160 | goto exit_generic; | 1160 | goto exit_generic; |
1161 | } | 1161 | } |
1162 | 1162 | ||
1163 | info(DRIVER_DESC); | 1163 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n"); |
1164 | 1164 | ||
1165 | return result; | 1165 | return result; |
1166 | 1166 | ||
@@ -1237,7 +1237,7 @@ int usb_serial_register(struct usb_serial_driver *driver) | |||
1237 | retval, driver->description); | 1237 | retval, driver->description); |
1238 | list_del(&driver->driver_list); | 1238 | list_del(&driver->driver_list); |
1239 | } else | 1239 | } else |
1240 | info("USB Serial support registered for %s", | 1240 | printk(KERN_INFO "USB Serial support registered for %s\n", |
1241 | driver->description); | 1241 | driver->description); |
1242 | 1242 | ||
1243 | return retval; | 1243 | return retval; |
@@ -1248,7 +1248,8 @@ EXPORT_SYMBOL_GPL(usb_serial_register); | |||
1248 | void usb_serial_deregister(struct usb_serial_driver *device) | 1248 | void usb_serial_deregister(struct usb_serial_driver *device) |
1249 | { | 1249 | { |
1250 | /* must be called with BKL held */ | 1250 | /* must be called with BKL held */ |
1251 | info("USB Serial deregistering driver %s", device->description); | 1251 | printk(KERN_INFO "USB Serial deregistering driver %s\n", |
1252 | device->description); | ||
1252 | list_del(&device->driver_list); | 1253 | list_del(&device->driver_list); |
1253 | usb_serial_bus_deregister(device); | 1254 | usb_serial_bus_deregister(device); |
1254 | } | 1255 | } |
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index a6d1c75a1c89..de4b5f0e7f3d 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -971,11 +971,14 @@ static int __init visor_init(void) | |||
971 | break; | 971 | break; |
972 | } | 972 | } |
973 | } | 973 | } |
974 | info( | 974 | printk(KERN_INFO KBUILD_MODNAME |
975 | "Untested USB device specified at time of module insertion"); | 975 | ": Untested USB device specified at time of module insertion\n"); |
976 | info("Warning: This is not guaranteed to work"); | 976 | printk(KERN_INFO KBUILD_MODNAME |
977 | info("Using a newer kernel is preferred to this method"); | 977 | ": Warning: This is not guaranteed to work\n"); |
978 | info("Adding Palm OS protocol 4.x support for unknown device: 0x%x/0x%x", | 978 | printk(KERN_INFO KBUILD_MODNAME |
979 | ": Using a newer kernel is preferred to this method\n"); | ||
980 | printk(KERN_INFO KBUILD_MODNAME | ||
981 | ": Adding Palm OS protocol 4.x support for unknown device: 0x%x/0x%x\n", | ||
979 | vendor, product); | 982 | vendor, product); |
980 | } | 983 | } |
981 | retval = usb_serial_register(&handspring_device); | 984 | retval = usb_serial_register(&handspring_device); |
@@ -990,7 +993,7 @@ static int __init visor_init(void) | |||
990 | retval = usb_register(&visor_driver); | 993 | retval = usb_register(&visor_driver); |
991 | if (retval) | 994 | if (retval) |
992 | goto failed_usb_register; | 995 | goto failed_usb_register; |
993 | info(DRIVER_DESC); | 996 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "\n"); |
994 | 997 | ||
995 | return 0; | 998 | return 0; |
996 | failed_usb_register: | 999 | failed_usb_register: |
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 11c8b97a5177..39f7f8d291d6 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -452,8 +452,9 @@ static int whiteheat_attach(struct usb_serial *serial) | |||
452 | 452 | ||
453 | hw_info = (struct whiteheat_hw_info *)&result[1]; | 453 | hw_info = (struct whiteheat_hw_info *)&result[1]; |
454 | 454 | ||
455 | info("%s: Driver %s: Firmware v%d.%02d", serial->type->description, | 455 | dev_info(&serial->dev->dev, "%s: Driver %s: Firmware v%d.%02d\n", |
456 | DRIVER_VERSION, hw_info->sw_major_rev, hw_info->sw_minor_rev); | 456 | serial->type->description, DRIVER_VERSION, |
457 | hw_info->sw_major_rev, hw_info->sw_minor_rev); | ||
457 | 458 | ||
458 | for (i = 0; i < serial->num_ports; i++) { | 459 | for (i = 0; i < serial->num_ports; i++) { |
459 | port = serial->port[i]; | 460 | port = serial->port[i]; |
@@ -1556,7 +1557,8 @@ static int __init whiteheat_init(void) | |||
1556 | retval = usb_register(&whiteheat_driver); | 1557 | retval = usb_register(&whiteheat_driver); |
1557 | if (retval) | 1558 | if (retval) |
1558 | goto failed_usb_register; | 1559 | goto failed_usb_register; |
1559 | info(DRIVER_DESC " " DRIVER_VERSION); | 1560 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1561 | DRIVER_DESC "\n"); | ||
1560 | return 0; | 1562 | return 0; |
1561 | failed_usb_register: | 1563 | failed_usb_register: |
1562 | usb_serial_deregister(&whiteheat_device); | 1564 | usb_serial_deregister(&whiteheat_device); |