aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/qcaux.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/qcaux.c')
-rw-r--r--drivers/usb/serial/qcaux.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/drivers/usb/serial/qcaux.c b/drivers/usb/serial/qcaux.c
index a34819884c1a..966245680f55 100644
--- a/drivers/usb/serial/qcaux.c
+++ b/drivers/usb/serial/qcaux.c
@@ -82,7 +82,6 @@ static struct usb_driver qcaux_driver = {
82 .probe = usb_serial_probe, 82 .probe = usb_serial_probe,
83 .disconnect = usb_serial_disconnect, 83 .disconnect = usb_serial_disconnect,
84 .id_table = id_table, 84 .id_table = id_table,
85 .no_dynamic_id = 1,
86}; 85};
87 86
88static struct usb_serial_driver qcaux_device = { 87static struct usb_serial_driver qcaux_device = {
@@ -91,29 +90,12 @@ static struct usb_serial_driver qcaux_device = {
91 .name = "qcaux", 90 .name = "qcaux",
92 }, 91 },
93 .id_table = id_table, 92 .id_table = id_table,
94 .usb_driver = &qcaux_driver,
95 .num_ports = 1, 93 .num_ports = 1,
96}; 94};
97 95
98static int __init qcaux_init(void) 96static struct usb_serial_driver * const serial_drivers[] = {
99{ 97 &qcaux_device, NULL
100 int retval; 98};
101
102 retval = usb_serial_register(&qcaux_device);
103 if (retval)
104 return retval;
105 retval = usb_register(&qcaux_driver);
106 if (retval)
107 usb_serial_deregister(&qcaux_device);
108 return retval;
109}
110
111static void __exit qcaux_exit(void)
112{
113 usb_deregister(&qcaux_driver);
114 usb_serial_deregister(&qcaux_device);
115}
116 99
117module_init(qcaux_init); 100module_usb_serial_driver(qcaux_driver, serial_drivers);
118module_exit(qcaux_exit);
119MODULE_LICENSE("GPL"); 101MODULE_LICENSE("GPL");