diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-17 02:05:44 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-17 02:06:34 -0400 |
commit | 4a53383565e340254479ce4d47bc181884ddf6c3 (patch) | |
tree | 6678fa987358a5613905ba321652edc793323590 /drivers/input | |
parent | 1b92c1cf6b638e7cbe9fdaac3f6efb8874f5cc02 (diff) |
Input: synaptics_usb - switch to module_usb_driver()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/gp2ap002a00f.c | 13 | ||||
-rw-r--r-- | drivers/input/mouse/synaptics_usb.c | 13 | ||||
-rw-r--r-- | drivers/input/touchscreen/auo-pixcir-ts.c | 12 | ||||
-rw-r--r-- | drivers/input/touchscreen/cyttsp_i2c.c | 12 | ||||
-rw-r--r-- | drivers/input/touchscreen/pixcir_i2c_ts.c | 12 |
5 files changed, 5 insertions, 57 deletions
diff --git a/drivers/input/misc/gp2ap002a00f.c b/drivers/input/misc/gp2ap002a00f.c index 71fba8c2fc66..b6664cfa340a 100644 --- a/drivers/input/misc/gp2ap002a00f.c +++ b/drivers/input/misc/gp2ap002a00f.c | |||
@@ -281,18 +281,7 @@ static struct i2c_driver gp2a_i2c_driver = { | |||
281 | .id_table = gp2a_i2c_id, | 281 | .id_table = gp2a_i2c_id, |
282 | }; | 282 | }; |
283 | 283 | ||
284 | static int __init gp2a_init(void) | 284 | module_i2c_driver(gp2a_i2c_driver); |
285 | { | ||
286 | return i2c_add_driver(&gp2a_i2c_driver); | ||
287 | } | ||
288 | |||
289 | static void __exit gp2a_exit(void) | ||
290 | { | ||
291 | i2c_del_driver(&gp2a_i2c_driver); | ||
292 | } | ||
293 | |||
294 | module_init(gp2a_init); | ||
295 | module_exit(gp2a_exit); | ||
296 | 285 | ||
297 | MODULE_AUTHOR("Courtney Cavin <courtney.cavin@sonyericsson.com>"); | 286 | MODULE_AUTHOR("Courtney Cavin <courtney.cavin@sonyericsson.com>"); |
298 | MODULE_DESCRIPTION("Sharp GP2AP002A00F I2C Proximity/Opto sensor driver"); | 287 | MODULE_DESCRIPTION("Sharp GP2AP002A00F I2C Proximity/Opto sensor driver"); |
diff --git a/drivers/input/mouse/synaptics_usb.c b/drivers/input/mouse/synaptics_usb.c index e559a947bb57..3c5eaaa5d154 100644 --- a/drivers/input/mouse/synaptics_usb.c +++ b/drivers/input/mouse/synaptics_usb.c | |||
@@ -548,18 +548,7 @@ static struct usb_driver synusb_driver = { | |||
548 | .supports_autosuspend = 1, | 548 | .supports_autosuspend = 1, |
549 | }; | 549 | }; |
550 | 550 | ||
551 | static int __init synusb_init(void) | 551 | module_usb_driver(synusb_driver); |
552 | { | ||
553 | return usb_register(&synusb_driver); | ||
554 | } | ||
555 | |||
556 | static void __exit synusb_exit(void) | ||
557 | { | ||
558 | usb_deregister(&synusb_driver); | ||
559 | } | ||
560 | |||
561 | module_init(synusb_init); | ||
562 | module_exit(synusb_exit); | ||
563 | 552 | ||
564 | MODULE_AUTHOR("Rob Miller <rob@inpharmatica.co.uk>, " | 553 | MODULE_AUTHOR("Rob Miller <rob@inpharmatica.co.uk>, " |
565 | "Ron Lee <ron@debian.org>, " | 554 | "Ron Lee <ron@debian.org>, " |
diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c b/drivers/input/touchscreen/auo-pixcir-ts.c index 94fb9fbb08a9..c7047b6bb020 100644 --- a/drivers/input/touchscreen/auo-pixcir-ts.c +++ b/drivers/input/touchscreen/auo-pixcir-ts.c | |||
@@ -635,17 +635,7 @@ static struct i2c_driver auo_pixcir_driver = { | |||
635 | .id_table = auo_pixcir_idtable, | 635 | .id_table = auo_pixcir_idtable, |
636 | }; | 636 | }; |
637 | 637 | ||
638 | static int __init auo_pixcir_init(void) | 638 | module_i2c_driver(auo_pixcir_driver); |
639 | { | ||
640 | return i2c_add_driver(&auo_pixcir_driver); | ||
641 | } | ||
642 | module_init(auo_pixcir_init); | ||
643 | |||
644 | static void __exit auo_pixcir_exit(void) | ||
645 | { | ||
646 | i2c_del_driver(&auo_pixcir_driver); | ||
647 | } | ||
648 | module_exit(auo_pixcir_exit); | ||
649 | 639 | ||
650 | MODULE_DESCRIPTION("AUO-PIXCIR touchscreen driver"); | 640 | MODULE_DESCRIPTION("AUO-PIXCIR touchscreen driver"); |
651 | MODULE_LICENSE("GPL v2"); | 641 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/input/touchscreen/cyttsp_i2c.c b/drivers/input/touchscreen/cyttsp_i2c.c index c7110cc06b9d..2af1d0c52bcd 100644 --- a/drivers/input/touchscreen/cyttsp_i2c.c +++ b/drivers/input/touchscreen/cyttsp_i2c.c | |||
@@ -128,17 +128,7 @@ static struct i2c_driver cyttsp_i2c_driver = { | |||
128 | .id_table = cyttsp_i2c_id, | 128 | .id_table = cyttsp_i2c_id, |
129 | }; | 129 | }; |
130 | 130 | ||
131 | static int __init cyttsp_i2c_init(void) | 131 | module_i2c_driver(cyttsp_i2c_driver); |
132 | { | ||
133 | return i2c_add_driver(&cyttsp_i2c_driver); | ||
134 | } | ||
135 | module_init(cyttsp_i2c_init); | ||
136 | |||
137 | static void __exit cyttsp_i2c_exit(void) | ||
138 | { | ||
139 | return i2c_del_driver(&cyttsp_i2c_driver); | ||
140 | } | ||
141 | module_exit(cyttsp_i2c_exit); | ||
142 | 132 | ||
143 | MODULE_LICENSE("GPL"); | 133 | MODULE_LICENSE("GPL"); |
144 | MODULE_DESCRIPTION("Cypress TrueTouch(R) Standard Product (TTSP) I2C driver"); | 134 | MODULE_DESCRIPTION("Cypress TrueTouch(R) Standard Product (TTSP) I2C driver"); |
diff --git a/drivers/input/touchscreen/pixcir_i2c_ts.c b/drivers/input/touchscreen/pixcir_i2c_ts.c index d5ac09a1ee56..72f6ba3a4709 100644 --- a/drivers/input/touchscreen/pixcir_i2c_ts.c +++ b/drivers/input/touchscreen/pixcir_i2c_ts.c | |||
@@ -222,17 +222,7 @@ static struct i2c_driver pixcir_i2c_ts_driver = { | |||
222 | .id_table = pixcir_i2c_ts_id, | 222 | .id_table = pixcir_i2c_ts_id, |
223 | }; | 223 | }; |
224 | 224 | ||
225 | static int __init pixcir_i2c_ts_init(void) | 225 | module_i2c_driver(pixcir_i2c_ts_driver); |
226 | { | ||
227 | return i2c_add_driver(&pixcir_i2c_ts_driver); | ||
228 | } | ||
229 | module_init(pixcir_i2c_ts_init); | ||
230 | |||
231 | static void __exit pixcir_i2c_ts_exit(void) | ||
232 | { | ||
233 | i2c_del_driver(&pixcir_i2c_ts_driver); | ||
234 | } | ||
235 | module_exit(pixcir_i2c_ts_exit); | ||
236 | 226 | ||
237 | MODULE_AUTHOR("Jianchun Bian <jcbian@pixcir.com.cn>, Dequan Meng <dqmeng@pixcir.com.cn>"); | 227 | MODULE_AUTHOR("Jianchun Bian <jcbian@pixcir.com.cn>, Dequan Meng <dqmeng@pixcir.com.cn>"); |
238 | MODULE_DESCRIPTION("Pixcir I2C Touchscreen Driver"); | 228 | MODULE_DESCRIPTION("Pixcir I2C Touchscreen Driver"); |