aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-03-17 02:05:41 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-17 02:06:19 -0400
commit1b92c1cf6b638e7cbe9fdaac3f6efb8874f5cc02 (patch)
tree88e7cfcd088df7eba9b705285c8e0d8ba7bbd632 /drivers
parentca83922e1c51c090e62bd42f3c12c84f49374a9e (diff)
Input: convert I2C drivers to use module_i2c_driver()
This patch converts the drivers in drivers/input/* to use the module_i2c_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/joystick/as5011.c12
-rw-r--r--drivers/input/keyboard/adp5588-keys.c12
-rw-r--r--drivers/input/keyboard/adp5589-keys.c12
-rw-r--r--drivers/input/keyboard/lm8323.c12
-rw-r--r--drivers/input/keyboard/max7359_keypad.c12
-rw-r--r--drivers/input/keyboard/mcs_touchkey.c13
-rw-r--r--drivers/input/keyboard/mpr121_touchkey.c12
-rw-r--r--drivers/input/keyboard/qt1070.c12
-rw-r--r--drivers/input/keyboard/qt2160.c12
-rw-r--r--drivers/input/misc/ad714x-i2c.c12
-rw-r--r--drivers/input/misc/adxl34x-i2c.c12
-rw-r--r--drivers/input/misc/bma150.c13
-rw-r--r--drivers/input/misc/cma3000_d0x_i2c.c13
-rw-r--r--drivers/input/misc/kxtj9.c12
-rw-r--r--drivers/input/misc/mma8450.c12
-rw-r--r--drivers/input/misc/mpu3050.c12
-rw-r--r--drivers/input/misc/pcf8574_keypad.c12
-rw-r--r--drivers/input/mouse/synaptics_i2c.c13
-rw-r--r--drivers/input/touchscreen/ad7879-i2c.c12
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c13
-rw-r--r--drivers/input/touchscreen/bu21013_ts.c25
-rw-r--r--drivers/input/touchscreen/cy8ctmg110_ts.c13
-rw-r--r--drivers/input/touchscreen/eeti_ts.c14
-rw-r--r--drivers/input/touchscreen/egalax_ts.c13
-rw-r--r--drivers/input/touchscreen/max11801_ts.c13
-rw-r--r--drivers/input/touchscreen/mcs5000_ts.c13
-rw-r--r--drivers/input/touchscreen/migor_ts.c13
-rw-r--r--drivers/input/touchscreen/st1232.c12
-rw-r--r--drivers/input/touchscreen/tsc2007.c13
29 files changed, 29 insertions, 345 deletions
diff --git a/drivers/input/joystick/as5011.c b/drivers/input/joystick/as5011.c
index 6d6e7418dc21..3063464474bf 100644
--- a/drivers/input/joystick/as5011.c
+++ b/drivers/input/joystick/as5011.c
@@ -355,14 +355,4 @@ static struct i2c_driver as5011_driver = {
355 .id_table = as5011_id, 355 .id_table = as5011_id,
356}; 356};
357 357
358static int __init as5011_init(void) 358module_i2c_driver(as5011_driver);
359{
360 return i2c_add_driver(&as5011_driver);
361}
362module_init(as5011_init);
363
364static void __exit as5011_exit(void)
365{
366 i2c_del_driver(&as5011_driver);
367}
368module_exit(as5011_exit);
diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c
index 4a7f534cf64b..39ebffac207e 100644
--- a/drivers/input/keyboard/adp5588-keys.c
+++ b/drivers/input/keyboard/adp5588-keys.c
@@ -653,17 +653,7 @@ static struct i2c_driver adp5588_driver = {
653 .id_table = adp5588_id, 653 .id_table = adp5588_id,
654}; 654};
655 655
656static int __init adp5588_init(void) 656module_i2c_driver(adp5588_driver);
657{
658 return i2c_add_driver(&adp5588_driver);
659}
660module_init(adp5588_init);
661
662static void __exit adp5588_exit(void)
663{
664 i2c_del_driver(&adp5588_driver);
665}
666module_exit(adp5588_exit);
667 657
668MODULE_LICENSE("GPL"); 658MODULE_LICENSE("GPL");
669MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 659MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
diff --git a/drivers/input/keyboard/adp5589-keys.c b/drivers/input/keyboard/adp5589-keys.c
index 02b5d53031bf..74e603213386 100644
--- a/drivers/input/keyboard/adp5589-keys.c
+++ b/drivers/input/keyboard/adp5589-keys.c
@@ -1108,17 +1108,7 @@ static struct i2c_driver adp5589_driver = {
1108 .id_table = adp5589_id, 1108 .id_table = adp5589_id,
1109}; 1109};
1110 1110
1111static int __init adp5589_init(void) 1111module_i2c_driver(adp5589_driver);
1112{
1113 return i2c_add_driver(&adp5589_driver);
1114}
1115module_init(adp5589_init);
1116
1117static void __exit adp5589_exit(void)
1118{
1119 i2c_del_driver(&adp5589_driver);
1120}
1121module_exit(adp5589_exit);
1122 1112
1123MODULE_LICENSE("GPL"); 1113MODULE_LICENSE("GPL");
1124MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 1114MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c
index 21823bfc7911..39ac2787e275 100644
--- a/drivers/input/keyboard/lm8323.c
+++ b/drivers/input/keyboard/lm8323.c
@@ -851,17 +851,7 @@ static struct i2c_driver lm8323_i2c_driver = {
851}; 851};
852MODULE_DEVICE_TABLE(i2c, lm8323_id); 852MODULE_DEVICE_TABLE(i2c, lm8323_id);
853 853
854static int __init lm8323_init(void) 854module_i2c_driver(lm8323_i2c_driver);
855{
856 return i2c_add_driver(&lm8323_i2c_driver);
857}
858module_init(lm8323_init);
859
860static void __exit lm8323_exit(void)
861{
862 i2c_del_driver(&lm8323_i2c_driver);
863}
864module_exit(lm8323_exit);
865 855
866MODULE_AUTHOR("Timo O. Karjalainen <timo.o.karjalainen@nokia.com>"); 856MODULE_AUTHOR("Timo O. Karjalainen <timo.o.karjalainen@nokia.com>");
867MODULE_AUTHOR("Daniel Stone"); 857MODULE_AUTHOR("Daniel Stone");
diff --git a/drivers/input/keyboard/max7359_keypad.c b/drivers/input/keyboard/max7359_keypad.c
index 5afe35ad24d3..8edada8ae712 100644
--- a/drivers/input/keyboard/max7359_keypad.c
+++ b/drivers/input/keyboard/max7359_keypad.c
@@ -316,17 +316,7 @@ static struct i2c_driver max7359_i2c_driver = {
316 .id_table = max7359_ids, 316 .id_table = max7359_ids,
317}; 317};
318 318
319static int __init max7359_init(void) 319module_i2c_driver(max7359_i2c_driver);
320{
321 return i2c_add_driver(&max7359_i2c_driver);
322}
323module_init(max7359_init);
324
325static void __exit max7359_exit(void)
326{
327 i2c_del_driver(&max7359_i2c_driver);
328}
329module_exit(max7359_exit);
330 320
331MODULE_AUTHOR("Kim Kyuwon <q1.kim@samsung.com>"); 321MODULE_AUTHOR("Kim Kyuwon <q1.kim@samsung.com>");
332MODULE_DESCRIPTION("MAX7359 Key Switch Controller Driver"); 322MODULE_DESCRIPTION("MAX7359 Key Switch Controller Driver");
diff --git a/drivers/input/keyboard/mcs_touchkey.c b/drivers/input/keyboard/mcs_touchkey.c
index af1aab324a4c..64a0ca4c92f3 100644
--- a/drivers/input/keyboard/mcs_touchkey.c
+++ b/drivers/input/keyboard/mcs_touchkey.c
@@ -274,18 +274,7 @@ static struct i2c_driver mcs_touchkey_driver = {
274 .id_table = mcs_touchkey_id, 274 .id_table = mcs_touchkey_id,
275}; 275};
276 276
277static int __init mcs_touchkey_init(void) 277module_i2c_driver(mcs_touchkey_driver);
278{
279 return i2c_add_driver(&mcs_touchkey_driver);
280}
281
282static void __exit mcs_touchkey_exit(void)
283{
284 i2c_del_driver(&mcs_touchkey_driver);
285}
286
287module_init(mcs_touchkey_init);
288module_exit(mcs_touchkey_exit);
289 278
290/* Module information */ 279/* Module information */
291MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>"); 280MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>");
diff --git a/drivers/input/keyboard/mpr121_touchkey.c b/drivers/input/keyboard/mpr121_touchkey.c
index 1c1615d9a7f9..caa218a51b5a 100644
--- a/drivers/input/keyboard/mpr121_touchkey.c
+++ b/drivers/input/keyboard/mpr121_touchkey.c
@@ -330,17 +330,7 @@ static struct i2c_driver mpr_touchkey_driver = {
330 .remove = __devexit_p(mpr_touchkey_remove), 330 .remove = __devexit_p(mpr_touchkey_remove),
331}; 331};
332 332
333static int __init mpr_touchkey_init(void) 333module_i2c_driver(mpr_touchkey_driver);
334{
335 return i2c_add_driver(&mpr_touchkey_driver);
336}
337module_init(mpr_touchkey_init);
338
339static void __exit mpr_touchkey_exit(void)
340{
341 i2c_del_driver(&mpr_touchkey_driver);
342}
343module_exit(mpr_touchkey_exit);
344 334
345MODULE_LICENSE("GPL"); 335MODULE_LICENSE("GPL");
346MODULE_AUTHOR("Zhang Jiejing <jiejing.zhang@freescale.com>"); 336MODULE_AUTHOR("Zhang Jiejing <jiejing.zhang@freescale.com>");
diff --git a/drivers/input/keyboard/qt1070.c b/drivers/input/keyboard/qt1070.c
index b21bf5b876bb..0b7b2f891752 100644
--- a/drivers/input/keyboard/qt1070.c
+++ b/drivers/input/keyboard/qt1070.c
@@ -258,17 +258,7 @@ static struct i2c_driver qt1070_driver = {
258 .remove = __devexit_p(qt1070_remove), 258 .remove = __devexit_p(qt1070_remove),
259}; 259};
260 260
261static int __init qt1070_init(void) 261module_i2c_driver(qt1070_driver);
262{
263 return i2c_add_driver(&qt1070_driver);
264}
265module_init(qt1070_init);
266
267static void __exit qt1070_exit(void)
268{
269 i2c_del_driver(&qt1070_driver);
270}
271module_exit(qt1070_exit);
272 262
273MODULE_AUTHOR("Bo Shen <voice.shen@atmel.com>"); 263MODULE_AUTHOR("Bo Shen <voice.shen@atmel.com>");
274MODULE_DESCRIPTION("Driver for AT42QT1070 QTouch sensor"); 264MODULE_DESCRIPTION("Driver for AT42QT1070 QTouch sensor");
diff --git a/drivers/input/keyboard/qt2160.c b/drivers/input/keyboard/qt2160.c
index fac695157e8a..e7a5e36e1203 100644
--- a/drivers/input/keyboard/qt2160.c
+++ b/drivers/input/keyboard/qt2160.c
@@ -379,17 +379,7 @@ static struct i2c_driver qt2160_driver = {
379 .remove = __devexit_p(qt2160_remove), 379 .remove = __devexit_p(qt2160_remove),
380}; 380};
381 381
382static int __init qt2160_init(void) 382module_i2c_driver(qt2160_driver);
383{
384 return i2c_add_driver(&qt2160_driver);
385}
386module_init(qt2160_init);
387
388static void __exit qt2160_cleanup(void)
389{
390 i2c_del_driver(&qt2160_driver);
391}
392module_exit(qt2160_cleanup);
393 383
394MODULE_AUTHOR("Raphael Derosso Pereira <raphaelpereira@gmail.com>"); 384MODULE_AUTHOR("Raphael Derosso Pereira <raphaelpereira@gmail.com>");
395MODULE_DESCRIPTION("Driver for AT42QT2160 Touch Sensor"); 385MODULE_DESCRIPTION("Driver for AT42QT2160 Touch Sensor");
diff --git a/drivers/input/misc/ad714x-i2c.c b/drivers/input/misc/ad714x-i2c.c
index 56810fb4eadd..c8a79015472a 100644
--- a/drivers/input/misc/ad714x-i2c.c
+++ b/drivers/input/misc/ad714x-i2c.c
@@ -116,17 +116,7 @@ static struct i2c_driver ad714x_i2c_driver = {
116 .id_table = ad714x_id, 116 .id_table = ad714x_id,
117}; 117};
118 118
119static int __init ad714x_i2c_init(void) 119module_i2c_driver(ad714x_i2c_driver);
120{
121 return i2c_add_driver(&ad714x_i2c_driver);
122}
123module_init(ad714x_i2c_init);
124
125static void __exit ad714x_i2c_exit(void)
126{
127 i2c_del_driver(&ad714x_i2c_driver);
128}
129module_exit(ad714x_i2c_exit);
130 120
131MODULE_DESCRIPTION("Analog Devices AD714X Capacitance Touch Sensor I2C Bus Driver"); 121MODULE_DESCRIPTION("Analog Devices AD714X Capacitance Touch Sensor I2C Bus Driver");
132MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); 122MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-i2c.c
index ccacf2bb06a4..dd1d1c145a7f 100644
--- a/drivers/input/misc/adxl34x-i2c.c
+++ b/drivers/input/misc/adxl34x-i2c.c
@@ -148,17 +148,7 @@ static struct i2c_driver adxl34x_driver = {
148 .id_table = adxl34x_id, 148 .id_table = adxl34x_id,
149}; 149};
150 150
151static int __init adxl34x_i2c_init(void) 151module_i2c_driver(adxl34x_driver);
152{
153 return i2c_add_driver(&adxl34x_driver);
154}
155module_init(adxl34x_i2c_init);
156
157static void __exit adxl34x_i2c_exit(void)
158{
159 i2c_del_driver(&adxl34x_driver);
160}
161module_exit(adxl34x_i2c_exit);
162 152
163MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 153MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
164MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer I2C Bus Driver"); 154MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer I2C Bus Driver");
diff --git a/drivers/input/misc/bma150.c b/drivers/input/misc/bma150.c
index 8f55b54352b6..e2f1e9f952b1 100644
--- a/drivers/input/misc/bma150.c
+++ b/drivers/input/misc/bma150.c
@@ -673,19 +673,8 @@ static struct i2c_driver bma150_driver = {
673 .remove = __devexit_p(bma150_remove), 673 .remove = __devexit_p(bma150_remove),
674}; 674};
675 675
676static int __init BMA150_init(void) 676module_i2c_driver(bma150_driver);
677{
678 return i2c_add_driver(&bma150_driver);
679}
680
681static void __exit BMA150_exit(void)
682{
683 i2c_del_driver(&bma150_driver);
684}
685 677
686MODULE_AUTHOR("Albert Zhang <xu.zhang@bosch-sensortec.com>"); 678MODULE_AUTHOR("Albert Zhang <xu.zhang@bosch-sensortec.com>");
687MODULE_DESCRIPTION("BMA150 driver"); 679MODULE_DESCRIPTION("BMA150 driver");
688MODULE_LICENSE("GPL"); 680MODULE_LICENSE("GPL");
689
690module_init(BMA150_init);
691module_exit(BMA150_exit);
diff --git a/drivers/input/misc/cma3000_d0x_i2c.c b/drivers/input/misc/cma3000_d0x_i2c.c
index d100cc5c5783..fe9b85f07792 100644
--- a/drivers/input/misc/cma3000_d0x_i2c.c
+++ b/drivers/input/misc/cma3000_d0x_i2c.c
@@ -125,18 +125,7 @@ static struct i2c_driver cma3000_i2c_driver = {
125 }, 125 },
126}; 126};
127 127
128static int __init cma3000_i2c_init(void) 128module_i2c_driver(cma3000_i2c_driver);
129{
130 return i2c_add_driver(&cma3000_i2c_driver);
131}
132
133static void __exit cma3000_i2c_exit(void)
134{
135 i2c_del_driver(&cma3000_i2c_driver);
136}
137
138module_init(cma3000_i2c_init);
139module_exit(cma3000_i2c_exit);
140 129
141MODULE_DESCRIPTION("CMA3000-D0x Accelerometer I2C Driver"); 130MODULE_DESCRIPTION("CMA3000-D0x Accelerometer I2C Driver");
142MODULE_LICENSE("GPL"); 131MODULE_LICENSE("GPL");
diff --git a/drivers/input/misc/kxtj9.c b/drivers/input/misc/kxtj9.c
index 21edaba489be..f46139f19ff1 100644
--- a/drivers/input/misc/kxtj9.c
+++ b/drivers/input/misc/kxtj9.c
@@ -667,17 +667,7 @@ static struct i2c_driver kxtj9_driver = {
667 .id_table = kxtj9_id, 667 .id_table = kxtj9_id,
668}; 668};
669 669
670static int __init kxtj9_init(void) 670module_i2c_driver(kxtj9_driver);
671{
672 return i2c_add_driver(&kxtj9_driver);
673}
674module_init(kxtj9_init);
675
676static void __exit kxtj9_exit(void)
677{
678 i2c_del_driver(&kxtj9_driver);
679}
680module_exit(kxtj9_exit);
681 671
682MODULE_DESCRIPTION("KXTJ9 accelerometer driver"); 672MODULE_DESCRIPTION("KXTJ9 accelerometer driver");
683MODULE_AUTHOR("Chris Hudson <chudson@kionix.com>"); 673MODULE_AUTHOR("Chris Hudson <chudson@kionix.com>");
diff --git a/drivers/input/misc/mma8450.c b/drivers/input/misc/mma8450.c
index 4d60080bb5d5..873ebced544e 100644
--- a/drivers/input/misc/mma8450.c
+++ b/drivers/input/misc/mma8450.c
@@ -247,17 +247,7 @@ static struct i2c_driver mma8450_driver = {
247 .id_table = mma8450_id, 247 .id_table = mma8450_id,
248}; 248};
249 249
250static int __init mma8450_init(void) 250module_i2c_driver(mma8450_driver);
251{
252 return i2c_add_driver(&mma8450_driver);
253}
254module_init(mma8450_init);
255
256static void __exit mma8450_exit(void)
257{
258 i2c_del_driver(&mma8450_driver);
259}
260module_exit(mma8450_exit);
261 251
262MODULE_AUTHOR("Freescale Semiconductor, Inc."); 252MODULE_AUTHOR("Freescale Semiconductor, Inc.");
263MODULE_DESCRIPTION("MMA8450 3-Axis Accelerometer Driver"); 253MODULE_DESCRIPTION("MMA8450 3-Axis Accelerometer Driver");
diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c
index 208d1a1cc7f3..5403c571b6a5 100644
--- a/drivers/input/misc/mpu3050.c
+++ b/drivers/input/misc/mpu3050.c
@@ -475,17 +475,7 @@ static struct i2c_driver mpu3050_i2c_driver = {
475 .id_table = mpu3050_ids, 475 .id_table = mpu3050_ids,
476}; 476};
477 477
478static int __init mpu3050_init(void) 478module_i2c_driver(mpu3050_i2c_driver);
479{
480 return i2c_add_driver(&mpu3050_i2c_driver);
481}
482module_init(mpu3050_init);
483
484static void __exit mpu3050_exit(void)
485{
486 i2c_del_driver(&mpu3050_i2c_driver);
487}
488module_exit(mpu3050_exit);
489 479
490MODULE_AUTHOR("Wistron Corp."); 480MODULE_AUTHOR("Wistron Corp.");
491MODULE_DESCRIPTION("MPU3050 Tri-axis gyroscope driver"); 481MODULE_DESCRIPTION("MPU3050 Tri-axis gyroscope driver");
diff --git a/drivers/input/misc/pcf8574_keypad.c b/drivers/input/misc/pcf8574_keypad.c
index 08be1a355956..544c6635abe9 100644
--- a/drivers/input/misc/pcf8574_keypad.c
+++ b/drivers/input/misc/pcf8574_keypad.c
@@ -216,17 +216,7 @@ static struct i2c_driver pcf8574_kp_driver = {
216 .id_table = pcf8574_kp_id, 216 .id_table = pcf8574_kp_id,
217}; 217};
218 218
219static int __init pcf8574_kp_init(void) 219module_i2c_driver(pcf8574_kp_driver);
220{
221 return i2c_add_driver(&pcf8574_kp_driver);
222}
223module_init(pcf8574_kp_init);
224
225static void __exit pcf8574_kp_exit(void)
226{
227 i2c_del_driver(&pcf8574_kp_driver);
228}
229module_exit(pcf8574_kp_exit);
230 220
231MODULE_AUTHOR("Michael Hennerich"); 221MODULE_AUTHOR("Michael Hennerich");
232MODULE_DESCRIPTION("Keypad input driver for 16 keys connected to PCF8574"); 222MODULE_DESCRIPTION("Keypad input driver for 16 keys connected to PCF8574");
diff --git a/drivers/input/mouse/synaptics_i2c.c b/drivers/input/mouse/synaptics_i2c.c
index 1c58aafa523f..f14675702c0f 100644
--- a/drivers/input/mouse/synaptics_i2c.c
+++ b/drivers/input/mouse/synaptics_i2c.c
@@ -672,18 +672,7 @@ static struct i2c_driver synaptics_i2c_driver = {
672 .id_table = synaptics_i2c_id_table, 672 .id_table = synaptics_i2c_id_table,
673}; 673};
674 674
675static int __init synaptics_i2c_init(void) 675module_i2c_driver(synaptics_i2c_driver);
676{
677 return i2c_add_driver(&synaptics_i2c_driver);
678}
679
680static void __exit synaptics_i2c_exit(void)
681{
682 i2c_del_driver(&synaptics_i2c_driver);
683}
684
685module_init(synaptics_i2c_init);
686module_exit(synaptics_i2c_exit);
687 676
688MODULE_DESCRIPTION("Synaptics I2C touchpad driver"); 677MODULE_DESCRIPTION("Synaptics I2C touchpad driver");
689MODULE_AUTHOR("Mike Rapoport, Igor Grinberg, Compulab"); 678MODULE_AUTHOR("Mike Rapoport, Igor Grinberg, Compulab");
diff --git a/drivers/input/touchscreen/ad7879-i2c.c b/drivers/input/touchscreen/ad7879-i2c.c
index 0dac6712f42b..3054354d0dd3 100644
--- a/drivers/input/touchscreen/ad7879-i2c.c
+++ b/drivers/input/touchscreen/ad7879-i2c.c
@@ -102,17 +102,7 @@ static struct i2c_driver ad7879_i2c_driver = {
102 .id_table = ad7879_id, 102 .id_table = ad7879_id,
103}; 103};
104 104
105static int __init ad7879_i2c_init(void) 105module_i2c_driver(ad7879_i2c_driver);
106{
107 return i2c_add_driver(&ad7879_i2c_driver);
108}
109module_init(ad7879_i2c_init);
110
111static void __exit ad7879_i2c_exit(void)
112{
113 i2c_del_driver(&ad7879_i2c_driver);
114}
115module_exit(ad7879_i2c_exit);
116 106
117MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 107MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
118MODULE_DESCRIPTION("AD7879(-1) touchscreen I2C bus driver"); 108MODULE_DESCRIPTION("AD7879(-1) touchscreen I2C bus driver");
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index a596c2775d1a..19d4ea65ea01 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -1267,18 +1267,7 @@ static struct i2c_driver mxt_driver = {
1267 .id_table = mxt_id, 1267 .id_table = mxt_id,
1268}; 1268};
1269 1269
1270static int __init mxt_init(void) 1270module_i2c_driver(mxt_driver);
1271{
1272 return i2c_add_driver(&mxt_driver);
1273}
1274
1275static void __exit mxt_exit(void)
1276{
1277 i2c_del_driver(&mxt_driver);
1278}
1279
1280module_init(mxt_init);
1281module_exit(mxt_exit);
1282 1271
1283/* Module information */ 1272/* Module information */
1284MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>"); 1273MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>");
diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c
index 902c7214e887..f2d03c06c2da 100644
--- a/drivers/input/touchscreen/bu21013_ts.c
+++ b/drivers/input/touchscreen/bu21013_ts.c
@@ -652,30 +652,7 @@ static struct i2c_driver bu21013_driver = {
652 .id_table = bu21013_id, 652 .id_table = bu21013_id,
653}; 653};
654 654
655/** 655module_i2c_driver(bu21013_driver);
656 * bu21013_init() - initializes the bu21013 touchscreen driver
657 *
658 * This function used to initializes the bu21013
659 * touchscreen driver and returns integer.
660 */
661static int __init bu21013_init(void)
662{
663 return i2c_add_driver(&bu21013_driver);
664}
665
666/**
667 * bu21013_exit() - de-initializes the bu21013 touchscreen driver
668 *
669 * This function uses to de-initializes the bu21013
670 * touchscreen driver and returns none.
671 */
672static void __exit bu21013_exit(void)
673{
674 i2c_del_driver(&bu21013_driver);
675}
676
677module_init(bu21013_init);
678module_exit(bu21013_exit);
679 656
680MODULE_LICENSE("GPL v2"); 657MODULE_LICENSE("GPL v2");
681MODULE_AUTHOR("Naveen Kumar G <naveen.gaddipati@stericsson.com>"); 658MODULE_AUTHOR("Naveen Kumar G <naveen.gaddipati@stericsson.com>");
diff --git a/drivers/input/touchscreen/cy8ctmg110_ts.c b/drivers/input/touchscreen/cy8ctmg110_ts.c
index d8815c5d54ad..237753ad1031 100644
--- a/drivers/input/touchscreen/cy8ctmg110_ts.c
+++ b/drivers/input/touchscreen/cy8ctmg110_ts.c
@@ -350,18 +350,7 @@ static struct i2c_driver cy8ctmg110_driver = {
350 .remove = __devexit_p(cy8ctmg110_remove), 350 .remove = __devexit_p(cy8ctmg110_remove),
351}; 351};
352 352
353static int __init cy8ctmg110_init(void) 353module_i2c_driver(cy8ctmg110_driver);
354{
355 return i2c_add_driver(&cy8ctmg110_driver);
356}
357
358static void __exit cy8ctmg110_exit(void)
359{
360 i2c_del_driver(&cy8ctmg110_driver);
361}
362
363module_init(cy8ctmg110_init);
364module_exit(cy8ctmg110_exit);
365 354
366MODULE_AUTHOR("Samuli Konttila <samuli.konttila@aavamobile.com>"); 355MODULE_AUTHOR("Samuli Konttila <samuli.konttila@aavamobile.com>");
367MODULE_DESCRIPTION("cy8ctmg110 TouchScreen Driver"); 356MODULE_DESCRIPTION("cy8ctmg110 TouchScreen Driver");
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c
index 1df19bb8534a..503c7096ed36 100644
--- a/drivers/input/touchscreen/eeti_ts.c
+++ b/drivers/input/touchscreen/eeti_ts.c
@@ -320,20 +320,8 @@ static struct i2c_driver eeti_ts_driver = {
320 .id_table = eeti_ts_id, 320 .id_table = eeti_ts_id,
321}; 321};
322 322
323static int __init eeti_ts_init(void) 323module_i2c_driver(eeti_ts_driver);
324{
325 return i2c_add_driver(&eeti_ts_driver);
326}
327
328static void __exit eeti_ts_exit(void)
329{
330 i2c_del_driver(&eeti_ts_driver);
331}
332 324
333MODULE_DESCRIPTION("EETI Touchscreen driver"); 325MODULE_DESCRIPTION("EETI Touchscreen driver");
334MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); 326MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>");
335MODULE_LICENSE("GPL"); 327MODULE_LICENSE("GPL");
336
337module_init(eeti_ts_init);
338module_exit(eeti_ts_exit);
339
diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c
index eadcc2e83c77..70524dd34f42 100644
--- a/drivers/input/touchscreen/egalax_ts.c
+++ b/drivers/input/touchscreen/egalax_ts.c
@@ -285,18 +285,7 @@ static struct i2c_driver egalax_ts_driver = {
285 .remove = __devexit_p(egalax_ts_remove), 285 .remove = __devexit_p(egalax_ts_remove),
286}; 286};
287 287
288static int __init egalax_ts_init(void) 288module_i2c_driver(egalax_ts_driver);
289{
290 return i2c_add_driver(&egalax_ts_driver);
291}
292
293static void __exit egalax_ts_exit(void)
294{
295 i2c_del_driver(&egalax_ts_driver);
296}
297
298module_init(egalax_ts_init);
299module_exit(egalax_ts_exit);
300 289
301MODULE_AUTHOR("Freescale Semiconductor, Inc."); 290MODULE_AUTHOR("Freescale Semiconductor, Inc.");
302MODULE_DESCRIPTION("Touchscreen driver for EETI eGalax touch controller"); 291MODULE_DESCRIPTION("Touchscreen driver for EETI eGalax touch controller");
diff --git a/drivers/input/touchscreen/max11801_ts.c b/drivers/input/touchscreen/max11801_ts.c
index 4627fe55b401..4eab50b856d7 100644
--- a/drivers/input/touchscreen/max11801_ts.c
+++ b/drivers/input/touchscreen/max11801_ts.c
@@ -255,18 +255,7 @@ static struct i2c_driver max11801_ts_driver = {
255 .remove = __devexit_p(max11801_ts_remove), 255 .remove = __devexit_p(max11801_ts_remove),
256}; 256};
257 257
258static int __init max11801_ts_init(void) 258module_i2c_driver(max11801_ts_driver);
259{
260 return i2c_add_driver(&max11801_ts_driver);
261}
262
263static void __exit max11801_ts_exit(void)
264{
265 i2c_del_driver(&max11801_ts_driver);
266}
267
268module_init(max11801_ts_init);
269module_exit(max11801_ts_exit);
270 259
271MODULE_AUTHOR("Zhang Jiejing <jiejing.zhang@freescale.com>"); 260MODULE_AUTHOR("Zhang Jiejing <jiejing.zhang@freescale.com>");
272MODULE_DESCRIPTION("Touchscreen driver for MAXI MAX11801 controller"); 261MODULE_DESCRIPTION("Touchscreen driver for MAXI MAX11801 controller");
diff --git a/drivers/input/touchscreen/mcs5000_ts.c b/drivers/input/touchscreen/mcs5000_ts.c
index 2d84c80ceb66..b528511861ce 100644
--- a/drivers/input/touchscreen/mcs5000_ts.c
+++ b/drivers/input/touchscreen/mcs5000_ts.c
@@ -302,18 +302,7 @@ static struct i2c_driver mcs5000_ts_driver = {
302 .id_table = mcs5000_ts_id, 302 .id_table = mcs5000_ts_id,
303}; 303};
304 304
305static int __init mcs5000_ts_init(void) 305module_i2c_driver(mcs5000_ts_driver);
306{
307 return i2c_add_driver(&mcs5000_ts_driver);
308}
309
310static void __exit mcs5000_ts_exit(void)
311{
312 i2c_del_driver(&mcs5000_ts_driver);
313}
314
315module_init(mcs5000_ts_init);
316module_exit(mcs5000_ts_exit);
317 306
318/* Module information */ 307/* Module information */
319MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>"); 308MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>");
diff --git a/drivers/input/touchscreen/migor_ts.c b/drivers/input/touchscreen/migor_ts.c
index 5226194aa78e..c038db93e2c3 100644
--- a/drivers/input/touchscreen/migor_ts.c
+++ b/drivers/input/touchscreen/migor_ts.c
@@ -242,19 +242,8 @@ static struct i2c_driver migor_ts_driver = {
242 .id_table = migor_ts_id, 242 .id_table = migor_ts_id,
243}; 243};
244 244
245static int __init migor_ts_init(void) 245module_i2c_driver(migor_ts_driver);
246{
247 return i2c_add_driver(&migor_ts_driver);
248}
249
250static void __exit migor_ts_exit(void)
251{
252 i2c_del_driver(&migor_ts_driver);
253}
254 246
255MODULE_DESCRIPTION("MigoR Touchscreen driver"); 247MODULE_DESCRIPTION("MigoR Touchscreen driver");
256MODULE_AUTHOR("Magnus Damm <damm@opensource.se>"); 248MODULE_AUTHOR("Magnus Damm <damm@opensource.se>");
257MODULE_LICENSE("GPL"); 249MODULE_LICENSE("GPL");
258
259module_init(migor_ts_init);
260module_exit(migor_ts_exit);
diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index 8825fe37d433..cbbf71b22696 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -268,17 +268,7 @@ static struct i2c_driver st1232_ts_driver = {
268 }, 268 },
269}; 269};
270 270
271static int __init st1232_ts_init(void) 271module_i2c_driver(st1232_ts_driver);
272{
273 return i2c_add_driver(&st1232_ts_driver);
274}
275module_init(st1232_ts_init);
276
277static void __exit st1232_ts_exit(void)
278{
279 i2c_del_driver(&st1232_ts_driver);
280}
281module_exit(st1232_ts_exit);
282 272
283MODULE_AUTHOR("Tony SIM <chinyeow.sim.xt@renesas.com>"); 273MODULE_AUTHOR("Tony SIM <chinyeow.sim.xt@renesas.com>");
284MODULE_DESCRIPTION("SITRONIX ST1232 Touchscreen Controller Driver"); 274MODULE_DESCRIPTION("SITRONIX ST1232 Touchscreen Controller Driver");
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c
index 1f674cb6c55b..1473d2382afd 100644
--- a/drivers/input/touchscreen/tsc2007.c
+++ b/drivers/input/touchscreen/tsc2007.c
@@ -399,18 +399,7 @@ static struct i2c_driver tsc2007_driver = {
399 .remove = __devexit_p(tsc2007_remove), 399 .remove = __devexit_p(tsc2007_remove),
400}; 400};
401 401
402static int __init tsc2007_init(void) 402module_i2c_driver(tsc2007_driver);
403{
404 return i2c_add_driver(&tsc2007_driver);
405}
406
407static void __exit tsc2007_exit(void)
408{
409 i2c_del_driver(&tsc2007_driver);
410}
411
412module_init(tsc2007_init);
413module_exit(tsc2007_exit);
414 403
415MODULE_AUTHOR("Kwangwoo Lee <kwlee@mtekvision.com>"); 404MODULE_AUTHOR("Kwangwoo Lee <kwlee@mtekvision.com>");
416MODULE_DESCRIPTION("TSC2007 TouchScreen Driver"); 405MODULE_DESCRIPTION("TSC2007 TouchScreen Driver");