aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/safe_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/safe_serial.c')
-rw-r--r--drivers/usb/serial/safe_serial.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c
index ae4ee30c741..36e9d9fc061 100644
--- a/drivers/usb/serial/safe_serial.c
+++ b/drivers/usb/serial/safe_serial.c
@@ -151,13 +151,6 @@ static struct usb_device_id id_table[] = {
151 151
152MODULE_DEVICE_TABLE(usb, id_table); 152MODULE_DEVICE_TABLE(usb, id_table);
153 153
154static struct usb_driver safe_driver = {
155 .name = "safe_serial",
156 .probe = usb_serial_probe,
157 .disconnect = usb_serial_disconnect,
158 .id_table = id_table,
159};
160
161static const __u16 crc10_table[256] = { 154static const __u16 crc10_table[256] = {
162 0x000, 0x233, 0x255, 0x066, 0x299, 0x0aa, 0x0cc, 0x2ff, 155 0x000, 0x233, 0x255, 0x066, 0x299, 0x0aa, 0x0cc, 0x2ff,
163 0x301, 0x132, 0x154, 0x367, 0x198, 0x3ab, 0x3cd, 0x1fe, 156 0x301, 0x132, 0x154, 0x367, 0x198, 0x3ab, 0x3cd, 0x1fe,
@@ -339,12 +332,12 @@ static int __init safe_init(void)
339 } 332 }
340 } 333 }
341 334
342 return usb_serial_register_drivers(&safe_driver, serial_drivers); 335 return usb_serial_register_drivers(serial_drivers, KBUILD_MODNAME, id_table);
343} 336}
344 337
345static void __exit safe_exit(void) 338static void __exit safe_exit(void)
346{ 339{
347 usb_serial_deregister_drivers(&safe_driver, serial_drivers); 340 usb_serial_deregister_drivers(serial_drivers);
348} 341}
349 342
350module_init(safe_init); 343module_init(safe_init);