diff options
Diffstat (limited to 'drivers/usb/serial/io_ti.c')
-rw-r--r-- | drivers/usb/serial/io_ti.c | 44 |
1 files changed, 6 insertions, 38 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 5818bfc3261e..40a95a7fe383 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -202,7 +202,6 @@ static struct usb_driver io_driver = { | |||
202 | .probe = usb_serial_probe, | 202 | .probe = usb_serial_probe, |
203 | .disconnect = usb_serial_disconnect, | 203 | .disconnect = usb_serial_disconnect, |
204 | .id_table = id_table_combined, | 204 | .id_table = id_table_combined, |
205 | .no_dynamic_id = 1, | ||
206 | }; | 205 | }; |
207 | 206 | ||
208 | 207 | ||
@@ -1817,7 +1816,7 @@ static void edge_bulk_out_callback(struct urb *urb) | |||
1817 | __func__, status); | 1816 | __func__, status); |
1818 | return; | 1817 | return; |
1819 | default: | 1818 | default: |
1820 | dev_err(&urb->dev->dev, "%s - nonzero write bulk status " | 1819 | dev_err_console(port, "%s - nonzero write bulk status " |
1821 | "received: %d\n", __func__, status); | 1820 | "received: %d\n", __func__, status); |
1822 | } | 1821 | } |
1823 | 1822 | ||
@@ -2111,7 +2110,7 @@ static void edge_send(struct tty_struct *tty) | |||
2111 | /* send the data out the bulk port */ | 2110 | /* send the data out the bulk port */ |
2112 | result = usb_submit_urb(port->write_urb, GFP_ATOMIC); | 2111 | result = usb_submit_urb(port->write_urb, GFP_ATOMIC); |
2113 | if (result) { | 2112 | if (result) { |
2114 | dev_err(&port->dev, | 2113 | dev_err_console(port, |
2115 | "%s - failed submitting write urb, error %d\n", | 2114 | "%s - failed submitting write urb, error %d\n", |
2116 | __func__, result); | 2115 | __func__, result); |
2117 | edge_port->ep_write_urb_in_use = 0; | 2116 | edge_port->ep_write_urb_in_use = 0; |
@@ -2725,7 +2724,6 @@ static struct usb_serial_driver edgeport_1port_device = { | |||
2725 | .name = "edgeport_ti_1", | 2724 | .name = "edgeport_ti_1", |
2726 | }, | 2725 | }, |
2727 | .description = "Edgeport TI 1 port adapter", | 2726 | .description = "Edgeport TI 1 port adapter", |
2728 | .usb_driver = &io_driver, | ||
2729 | .id_table = edgeport_1port_id_table, | 2727 | .id_table = edgeport_1port_id_table, |
2730 | .num_ports = 1, | 2728 | .num_ports = 1, |
2731 | .open = edge_open, | 2729 | .open = edge_open, |
@@ -2757,7 +2755,6 @@ static struct usb_serial_driver edgeport_2port_device = { | |||
2757 | .name = "edgeport_ti_2", | 2755 | .name = "edgeport_ti_2", |
2758 | }, | 2756 | }, |
2759 | .description = "Edgeport TI 2 port adapter", | 2757 | .description = "Edgeport TI 2 port adapter", |
2760 | .usb_driver = &io_driver, | ||
2761 | .id_table = edgeport_2port_id_table, | 2758 | .id_table = edgeport_2port_id_table, |
2762 | .num_ports = 2, | 2759 | .num_ports = 2, |
2763 | .open = edge_open, | 2760 | .open = edge_open, |
@@ -2782,41 +2779,12 @@ static struct usb_serial_driver edgeport_2port_device = { | |||
2782 | .write_bulk_callback = edge_bulk_out_callback, | 2779 | .write_bulk_callback = edge_bulk_out_callback, |
2783 | }; | 2780 | }; |
2784 | 2781 | ||
2782 | static struct usb_serial_driver * const serial_drivers[] = { | ||
2783 | &edgeport_1port_device, &edgeport_2port_device, NULL | ||
2784 | }; | ||
2785 | 2785 | ||
2786 | static int __init edgeport_init(void) | 2786 | module_usb_serial_driver(io_driver, serial_drivers); |
2787 | { | ||
2788 | int retval; | ||
2789 | retval = usb_serial_register(&edgeport_1port_device); | ||
2790 | if (retval) | ||
2791 | goto failed_1port_device_register; | ||
2792 | retval = usb_serial_register(&edgeport_2port_device); | ||
2793 | if (retval) | ||
2794 | goto failed_2port_device_register; | ||
2795 | retval = usb_register(&io_driver); | ||
2796 | if (retval) | ||
2797 | goto failed_usb_register; | ||
2798 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
2799 | DRIVER_DESC "\n"); | ||
2800 | return 0; | ||
2801 | failed_usb_register: | ||
2802 | usb_serial_deregister(&edgeport_2port_device); | ||
2803 | failed_2port_device_register: | ||
2804 | usb_serial_deregister(&edgeport_1port_device); | ||
2805 | failed_1port_device_register: | ||
2806 | return retval; | ||
2807 | } | ||
2808 | |||
2809 | static void __exit edgeport_exit(void) | ||
2810 | { | ||
2811 | usb_deregister(&io_driver); | ||
2812 | usb_serial_deregister(&edgeport_1port_device); | ||
2813 | usb_serial_deregister(&edgeport_2port_device); | ||
2814 | } | ||
2815 | |||
2816 | module_init(edgeport_init); | ||
2817 | module_exit(edgeport_exit); | ||
2818 | 2787 | ||
2819 | /* Module information */ | ||
2820 | MODULE_AUTHOR(DRIVER_AUTHOR); | 2788 | MODULE_AUTHOR(DRIVER_AUTHOR); |
2821 | MODULE_DESCRIPTION(DRIVER_DESC); | 2789 | MODULE_DESCRIPTION(DRIVER_DESC); |
2822 | MODULE_LICENSE("GPL"); | 2790 | MODULE_LICENSE("GPL"); |