aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJJ Ding <dgdunix@gmail.com>2011-11-29 14:14:13 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-12-01 02:41:43 -0500
commitcdcc96e261909eccf596c070116c8b906a42b328 (patch)
tree27446901596bdc384a8c06c7f647a90ed66963fa
parent24d2469a33112bbce008a15bc4210cc60ffd7443 (diff)
Input: touchscreen - use macro module_platform_driver()
Commit 940ab88962bc1aff3273a8356d64577a6e386736 introduced a new macro to save some platform_driver boilerplate code. Use it. Signed-off-by: JJ Ding <dgdunix@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--drivers/input/touchscreen/88pm860x-ts.c13
-rw-r--r--drivers/input/touchscreen/atmel-wm97xx.c13
-rw-r--r--drivers/input/touchscreen/atmel_tsadcc.c15
-rw-r--r--drivers/input/touchscreen/da9034-ts.c13
-rw-r--r--drivers/input/touchscreen/intel-mid-touch.c13
-rw-r--r--drivers/input/touchscreen/jornada720_ts.c14
-rw-r--r--drivers/input/touchscreen/lpc32xx_ts.c13
-rw-r--r--drivers/input/touchscreen/mainstone-wm97xx.c14
-rw-r--r--drivers/input/touchscreen/mc13783_ts.c13
-rw-r--r--drivers/input/touchscreen/pcap_ts.c14
-rw-r--r--drivers/input/touchscreen/s3c2410_ts.c14
-rw-r--r--drivers/input/touchscreen/stmpe-ts.c15
-rw-r--r--drivers/input/touchscreen/tnetv107x-ts.c14
-rw-r--r--drivers/input/touchscreen/tps6507x-ts.c13
-rw-r--r--drivers/input/touchscreen/ucb1400_ts.c14
-rw-r--r--drivers/input/touchscreen/w90p910_ts.c14
-rw-r--r--drivers/input/touchscreen/wm831x-ts.c13
-rw-r--r--drivers/input/touchscreen/zylonite-wm97xx.c14
18 files changed, 18 insertions, 228 deletions
diff --git a/drivers/input/touchscreen/88pm860x-ts.c b/drivers/input/touchscreen/88pm860x-ts.c
index b3aebc2166b..05f30b73c3c 100644
--- a/drivers/input/touchscreen/88pm860x-ts.c
+++ b/drivers/input/touchscreen/88pm860x-ts.c
@@ -217,18 +217,7 @@ static struct platform_driver pm860x_touch_driver = {
217 .probe = pm860x_touch_probe, 217 .probe = pm860x_touch_probe,
218 .remove = __devexit_p(pm860x_touch_remove), 218 .remove = __devexit_p(pm860x_touch_remove),
219}; 219};
220 220module_platform_driver(pm860x_touch_driver);
221static int __init pm860x_touch_init(void)
222{
223 return platform_driver_register(&pm860x_touch_driver);
224}
225module_init(pm860x_touch_init);
226
227static void __exit pm860x_touch_exit(void)
228{
229 platform_driver_unregister(&pm860x_touch_driver);
230}
231module_exit(pm860x_touch_exit);
232 221
233MODULE_DESCRIPTION("Touchscreen driver for Marvell Semiconductor 88PM860x"); 222MODULE_DESCRIPTION("Touchscreen driver for Marvell Semiconductor 88PM860x");
234MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); 223MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>");
diff --git a/drivers/input/touchscreen/atmel-wm97xx.c b/drivers/input/touchscreen/atmel-wm97xx.c
index 8034cbb20f7..d016cb26d12 100644
--- a/drivers/input/touchscreen/atmel-wm97xx.c
+++ b/drivers/input/touchscreen/atmel-wm97xx.c
@@ -429,18 +429,7 @@ static struct platform_driver atmel_wm97xx_driver = {
429 .suspend = atmel_wm97xx_suspend, 429 .suspend = atmel_wm97xx_suspend,
430 .resume = atmel_wm97xx_resume, 430 .resume = atmel_wm97xx_resume,
431}; 431};
432 432module_platform_driver(atmel_wm97xx_driver);
433static int __init atmel_wm97xx_init(void)
434{
435 return platform_driver_probe(&atmel_wm97xx_driver, atmel_wm97xx_probe);
436}
437module_init(atmel_wm97xx_init);
438
439static void __exit atmel_wm97xx_exit(void)
440{
441 platform_driver_unregister(&atmel_wm97xx_driver);
442}
443module_exit(atmel_wm97xx_exit);
444 433
445MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>"); 434MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>");
446MODULE_DESCRIPTION("wm97xx continuous touch driver for Atmel AT91 and AVR32"); 435MODULE_DESCRIPTION("wm97xx continuous touch driver for Atmel AT91 and AVR32");
diff --git a/drivers/input/touchscreen/atmel_tsadcc.c b/drivers/input/touchscreen/atmel_tsadcc.c
index 122a8788365..201b2d2ec1b 100644
--- a/drivers/input/touchscreen/atmel_tsadcc.c
+++ b/drivers/input/touchscreen/atmel_tsadcc.c
@@ -351,20 +351,7 @@ static struct platform_driver atmel_tsadcc_driver = {
351 .name = "atmel_tsadcc", 351 .name = "atmel_tsadcc",
352 }, 352 },
353}; 353};
354 354module_platform_driver(atmel_tsadcc_driver);
355static int __init atmel_tsadcc_init(void)
356{
357 return platform_driver_register(&atmel_tsadcc_driver);
358}
359
360static void __exit atmel_tsadcc_exit(void)
361{
362 platform_driver_unregister(&atmel_tsadcc_driver);
363}
364
365module_init(atmel_tsadcc_init);
366module_exit(atmel_tsadcc_exit);
367
368 355
369MODULE_LICENSE("GPL"); 356MODULE_LICENSE("GPL");
370MODULE_DESCRIPTION("Atmel TouchScreen Driver"); 357MODULE_DESCRIPTION("Atmel TouchScreen Driver");
diff --git a/drivers/input/touchscreen/da9034-ts.c b/drivers/input/touchscreen/da9034-ts.c
index 2b72a5923c1..36b65cf10d7 100644
--- a/drivers/input/touchscreen/da9034-ts.c
+++ b/drivers/input/touchscreen/da9034-ts.c
@@ -379,18 +379,7 @@ static struct platform_driver da9034_touch_driver = {
379 .probe = da9034_touch_probe, 379 .probe = da9034_touch_probe,
380 .remove = __devexit_p(da9034_touch_remove), 380 .remove = __devexit_p(da9034_touch_remove),
381}; 381};
382 382module_platform_driver(da9034_touch_driver);
383static int __init da9034_touch_init(void)
384{
385 return platform_driver_register(&da9034_touch_driver);
386}
387module_init(da9034_touch_init);
388
389static void __exit da9034_touch_exit(void)
390{
391 platform_driver_unregister(&da9034_touch_driver);
392}
393module_exit(da9034_touch_exit);
394 383
395MODULE_DESCRIPTION("Touchscreen driver for Dialog Semiconductor DA9034"); 384MODULE_DESCRIPTION("Touchscreen driver for Dialog Semiconductor DA9034");
396MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>, Bin Yang <bin.yang@marvell.com>"); 385MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>, Bin Yang <bin.yang@marvell.com>");
diff --git a/drivers/input/touchscreen/intel-mid-touch.c b/drivers/input/touchscreen/intel-mid-touch.c
index 327695268e0..3cd7a837f82 100644
--- a/drivers/input/touchscreen/intel-mid-touch.c
+++ b/drivers/input/touchscreen/intel-mid-touch.c
@@ -664,18 +664,7 @@ static struct platform_driver mrstouch_driver = {
664 .probe = mrstouch_probe, 664 .probe = mrstouch_probe,
665 .remove = __devexit_p(mrstouch_remove), 665 .remove = __devexit_p(mrstouch_remove),
666}; 666};
667 667module_platform_driver(mrstouch_driver);
668static int __init mrstouch_init(void)
669{
670 return platform_driver_register(&mrstouch_driver);
671}
672module_init(mrstouch_init);
673
674static void __exit mrstouch_exit(void)
675{
676 platform_driver_unregister(&mrstouch_driver);
677}
678module_exit(mrstouch_exit);
679 668
680MODULE_AUTHOR("Sreedhara Murthy. D.S, sreedhara.ds@intel.com"); 669MODULE_AUTHOR("Sreedhara Murthy. D.S, sreedhara.ds@intel.com");
681MODULE_DESCRIPTION("Intel Moorestown Resistive Touch Screen Driver"); 670MODULE_DESCRIPTION("Intel Moorestown Resistive Touch Screen Driver");
diff --git a/drivers/input/touchscreen/jornada720_ts.c b/drivers/input/touchscreen/jornada720_ts.c
index 50076c2d59e..c3848ad2325 100644
--- a/drivers/input/touchscreen/jornada720_ts.c
+++ b/drivers/input/touchscreen/jornada720_ts.c
@@ -172,16 +172,4 @@ static struct platform_driver jornada720_ts_driver = {
172 .owner = THIS_MODULE, 172 .owner = THIS_MODULE,
173 }, 173 },
174}; 174};
175 175module_platform_driver(jornada720_ts_driver);
176static int __init jornada720_ts_init(void)
177{
178 return platform_driver_register(&jornada720_ts_driver);
179}
180
181static void __exit jornada720_ts_exit(void)
182{
183 platform_driver_unregister(&jornada720_ts_driver);
184}
185
186module_init(jornada720_ts_init);
187module_exit(jornada720_ts_exit);
diff --git a/drivers/input/touchscreen/lpc32xx_ts.c b/drivers/input/touchscreen/lpc32xx_ts.c
index 0a484ed5295..afcd0691ec6 100644
--- a/drivers/input/touchscreen/lpc32xx_ts.c
+++ b/drivers/input/touchscreen/lpc32xx_ts.c
@@ -392,18 +392,7 @@ static struct platform_driver lpc32xx_ts_driver = {
392 .pm = LPC32XX_TS_PM_OPS, 392 .pm = LPC32XX_TS_PM_OPS,
393 }, 393 },
394}; 394};
395 395module_platform_driver(lpc32xx_ts_driver);
396static int __init lpc32xx_ts_init(void)
397{
398 return platform_driver_register(&lpc32xx_ts_driver);
399}
400module_init(lpc32xx_ts_init);
401
402static void __exit lpc32xx_ts_exit(void)
403{
404 platform_driver_unregister(&lpc32xx_ts_driver);
405}
406module_exit(lpc32xx_ts_exit);
407 396
408MODULE_AUTHOR("Kevin Wells <kevin.wells@nxp.com"); 397MODULE_AUTHOR("Kevin Wells <kevin.wells@nxp.com");
409MODULE_DESCRIPTION("LPC32XX TSC Driver"); 398MODULE_DESCRIPTION("LPC32XX TSC Driver");
diff --git a/drivers/input/touchscreen/mainstone-wm97xx.c b/drivers/input/touchscreen/mainstone-wm97xx.c
index e966c29ff1b..7d2b2136e5a 100644
--- a/drivers/input/touchscreen/mainstone-wm97xx.c
+++ b/drivers/input/touchscreen/mainstone-wm97xx.c
@@ -302,19 +302,7 @@ static struct platform_driver mainstone_wm97xx_driver = {
302 .name = "wm97xx-touch", 302 .name = "wm97xx-touch",
303 }, 303 },
304}; 304};
305 305module_platform_driver(mainstone_wm97xx_driver);
306static int __init mainstone_wm97xx_init(void)
307{
308 return platform_driver_register(&mainstone_wm97xx_driver);
309}
310
311static void __exit mainstone_wm97xx_exit(void)
312{
313 platform_driver_unregister(&mainstone_wm97xx_driver);
314}
315
316module_init(mainstone_wm97xx_init);
317module_exit(mainstone_wm97xx_exit);
318 306
319/* Module information */ 307/* Module information */
320MODULE_AUTHOR("Liam Girdwood <lrg@slimlogic.co.uk>"); 308MODULE_AUTHOR("Liam Girdwood <lrg@slimlogic.co.uk>");
diff --git a/drivers/input/touchscreen/mc13783_ts.c b/drivers/input/touchscreen/mc13783_ts.c
index ede02743eac..68f86f7dabb 100644
--- a/drivers/input/touchscreen/mc13783_ts.c
+++ b/drivers/input/touchscreen/mc13783_ts.c
@@ -240,18 +240,7 @@ static struct platform_driver mc13783_ts_driver = {
240 .name = MC13783_TS_NAME, 240 .name = MC13783_TS_NAME,
241 }, 241 },
242}; 242};
243 243module_platform_driver(mc13783_ts_driver);
244static int __init mc13783_ts_init(void)
245{
246 return platform_driver_probe(&mc13783_ts_driver, &mc13783_ts_probe);
247}
248module_init(mc13783_ts_init);
249
250static void __exit mc13783_ts_exit(void)
251{
252 platform_driver_unregister(&mc13783_ts_driver);
253}
254module_exit(mc13783_ts_exit);
255 244
256MODULE_DESCRIPTION("MC13783 input touchscreen driver"); 245MODULE_DESCRIPTION("MC13783 input touchscreen driver");
257MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>"); 246MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
diff --git a/drivers/input/touchscreen/pcap_ts.c b/drivers/input/touchscreen/pcap_ts.c
index ea6ef16e59b..f57aeb80f7e 100644
--- a/drivers/input/touchscreen/pcap_ts.c
+++ b/drivers/input/touchscreen/pcap_ts.c
@@ -252,19 +252,7 @@ static struct platform_driver pcap_ts_driver = {
252 .pm = PCAP_TS_PM_OPS, 252 .pm = PCAP_TS_PM_OPS,
253 }, 253 },
254}; 254};
255 255module_platform_driver(pcap_ts_driver);
256static int __init pcap_ts_init(void)
257{
258 return platform_driver_register(&pcap_ts_driver);
259}
260
261static void __exit pcap_ts_exit(void)
262{
263 platform_driver_unregister(&pcap_ts_driver);
264}
265
266module_init(pcap_ts_init);
267module_exit(pcap_ts_exit);
268 256
269MODULE_DESCRIPTION("Motorola PCAP2 touchscreen driver"); 257MODULE_DESCRIPTION("Motorola PCAP2 touchscreen driver");
270MODULE_AUTHOR("Daniel Ribeiro / Harald Welte"); 258MODULE_AUTHOR("Daniel Ribeiro / Harald Welte");
diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c
index 64ce697a345..bf1a0640006 100644
--- a/drivers/input/touchscreen/s3c2410_ts.c
+++ b/drivers/input/touchscreen/s3c2410_ts.c
@@ -432,19 +432,7 @@ static struct platform_driver s3c_ts_driver = {
432 .probe = s3c2410ts_probe, 432 .probe = s3c2410ts_probe,
433 .remove = __devexit_p(s3c2410ts_remove), 433 .remove = __devexit_p(s3c2410ts_remove),
434}; 434};
435 435module_platform_driver(s3c_ts_driver);
436static int __init s3c2410ts_init(void)
437{
438 return platform_driver_register(&s3c_ts_driver);
439}
440
441static void __exit s3c2410ts_exit(void)
442{
443 platform_driver_unregister(&s3c_ts_driver);
444}
445
446module_init(s3c2410ts_init);
447module_exit(s3c2410ts_exit);
448 436
449MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>, " 437MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>, "
450 "Ben Dooks <ben@simtec.co.uk>, " 438 "Ben Dooks <ben@simtec.co.uk>, "
diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
index ae88e13c99f..692b685720c 100644
--- a/drivers/input/touchscreen/stmpe-ts.c
+++ b/drivers/input/touchscreen/stmpe-ts.c
@@ -379,20 +379,7 @@ static struct platform_driver stmpe_ts_driver = {
379 .probe = stmpe_input_probe, 379 .probe = stmpe_input_probe,
380 .remove = __devexit_p(stmpe_ts_remove), 380 .remove = __devexit_p(stmpe_ts_remove),
381}; 381};
382 382module_platform_driver(stmpe_ts_driver);
383static int __init stmpe_ts_init(void)
384{
385 return platform_driver_register(&stmpe_ts_driver);
386}
387
388module_init(stmpe_ts_init);
389
390static void __exit stmpe_ts_exit(void)
391{
392 platform_driver_unregister(&stmpe_ts_driver);
393}
394
395module_exit(stmpe_ts_exit);
396 383
397MODULE_AUTHOR("Luotao Fu <l.fu@pengutronix.de>"); 384MODULE_AUTHOR("Luotao Fu <l.fu@pengutronix.de>");
398MODULE_DESCRIPTION("STMPEXXX touchscreen driver"); 385MODULE_DESCRIPTION("STMPEXXX touchscreen driver");
diff --git a/drivers/input/touchscreen/tnetv107x-ts.c b/drivers/input/touchscreen/tnetv107x-ts.c
index 0e8f63e5b36..7e748809735 100644
--- a/drivers/input/touchscreen/tnetv107x-ts.c
+++ b/drivers/input/touchscreen/tnetv107x-ts.c
@@ -378,19 +378,7 @@ static struct platform_driver tsc_driver = {
378 .driver.name = "tnetv107x-ts", 378 .driver.name = "tnetv107x-ts",
379 .driver.owner = THIS_MODULE, 379 .driver.owner = THIS_MODULE,
380}; 380};
381 381module_platform_driver(tsc_driver);
382static int __init tsc_init(void)
383{
384 return platform_driver_register(&tsc_driver);
385}
386
387static void __exit tsc_exit(void)
388{
389 platform_driver_unregister(&tsc_driver);
390}
391
392module_init(tsc_init);
393module_exit(tsc_exit);
394 382
395MODULE_AUTHOR("Cyril Chemparathy"); 383MODULE_AUTHOR("Cyril Chemparathy");
396MODULE_DESCRIPTION("TNETV107X Touchscreen Driver"); 384MODULE_DESCRIPTION("TNETV107X Touchscreen Driver");
diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c
index 43031492d73..6c6f6d8ea9b 100644
--- a/drivers/input/touchscreen/tps6507x-ts.c
+++ b/drivers/input/touchscreen/tps6507x-ts.c
@@ -371,18 +371,7 @@ static struct platform_driver tps6507x_ts_driver = {
371 .probe = tps6507x_ts_probe, 371 .probe = tps6507x_ts_probe,
372 .remove = __devexit_p(tps6507x_ts_remove), 372 .remove = __devexit_p(tps6507x_ts_remove),
373}; 373};
374 374module_platform_driver(tps6507x_ts_driver);
375static int __init tps6507x_ts_init(void)
376{
377 return platform_driver_register(&tps6507x_ts_driver);
378}
379module_init(tps6507x_ts_init);
380
381static void __exit tps6507x_ts_exit(void)
382{
383 platform_driver_unregister(&tps6507x_ts_driver);
384}
385module_exit(tps6507x_ts_exit);
386 375
387MODULE_AUTHOR("Todd Fischer <todd.fischer@ridgerun.com>"); 376MODULE_AUTHOR("Todd Fischer <todd.fischer@ridgerun.com>");
388MODULE_DESCRIPTION("TPS6507x - TouchScreen driver"); 377MODULE_DESCRIPTION("TPS6507x - TouchScreen driver");
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c
index 3b5b5df04dd..cf2440f537a 100644
--- a/drivers/input/touchscreen/ucb1400_ts.c
+++ b/drivers/input/touchscreen/ucb1400_ts.c
@@ -456,16 +456,7 @@ static struct platform_driver ucb1400_ts_driver = {
456 .name = "ucb1400_ts", 456 .name = "ucb1400_ts",
457 }, 457 },
458}; 458};
459 459module_platform_driver(ucb1400_ts_driver);
460static int __init ucb1400_ts_init(void)
461{
462 return platform_driver_register(&ucb1400_ts_driver);
463}
464
465static void __exit ucb1400_ts_exit(void)
466{
467 platform_driver_unregister(&ucb1400_ts_driver);
468}
469 460
470module_param(adcsync, bool, 0444); 461module_param(adcsync, bool, 0444);
471MODULE_PARM_DESC(adcsync, "Synchronize touch readings with ADCSYNC pin."); 462MODULE_PARM_DESC(adcsync, "Synchronize touch readings with ADCSYNC pin.");
@@ -479,8 +470,5 @@ MODULE_PARM_DESC(ts_delay_pressure,
479 "delay between panel setup and pressure read." 470 "delay between panel setup and pressure read."
480 " Default = 0us."); 471 " Default = 0us.");
481 472
482module_init(ucb1400_ts_init);
483module_exit(ucb1400_ts_exit);
484
485MODULE_DESCRIPTION("Philips UCB1400 touchscreen driver"); 473MODULE_DESCRIPTION("Philips UCB1400 touchscreen driver");
486MODULE_LICENSE("GPL"); 474MODULE_LICENSE("GPL");
diff --git a/drivers/input/touchscreen/w90p910_ts.c b/drivers/input/touchscreen/w90p910_ts.c
index 217aa51135c..9396b21d0e8 100644
--- a/drivers/input/touchscreen/w90p910_ts.c
+++ b/drivers/input/touchscreen/w90p910_ts.c
@@ -331,19 +331,7 @@ static struct platform_driver w90x900ts_driver = {
331 .owner = THIS_MODULE, 331 .owner = THIS_MODULE,
332 }, 332 },
333}; 333};
334 334module_platform_driver(w90x900ts_driver);
335static int __init w90x900ts_init(void)
336{
337 return platform_driver_register(&w90x900ts_driver);
338}
339
340static void __exit w90x900ts_exit(void)
341{
342 platform_driver_unregister(&w90x900ts_driver);
343}
344
345module_init(w90x900ts_init);
346module_exit(w90x900ts_exit);
347 335
348MODULE_AUTHOR("Wan ZongShun <mcuos.com@gmail.com>"); 336MODULE_AUTHOR("Wan ZongShun <mcuos.com@gmail.com>");
349MODULE_DESCRIPTION("w90p910 touch screen driver!"); 337MODULE_DESCRIPTION("w90p910 touch screen driver!");
diff --git a/drivers/input/touchscreen/wm831x-ts.c b/drivers/input/touchscreen/wm831x-ts.c
index 9175d49d254..4bc851a9dc3 100644
--- a/drivers/input/touchscreen/wm831x-ts.c
+++ b/drivers/input/touchscreen/wm831x-ts.c
@@ -401,18 +401,7 @@ static struct platform_driver wm831x_ts_driver = {
401 .probe = wm831x_ts_probe, 401 .probe = wm831x_ts_probe,
402 .remove = __devexit_p(wm831x_ts_remove), 402 .remove = __devexit_p(wm831x_ts_remove),
403}; 403};
404 404module_platform_driver(wm831x_ts_driver);
405static int __init wm831x_ts_init(void)
406{
407 return platform_driver_register(&wm831x_ts_driver);
408}
409module_init(wm831x_ts_init);
410
411static void __exit wm831x_ts_exit(void)
412{
413 platform_driver_unregister(&wm831x_ts_driver);
414}
415module_exit(wm831x_ts_exit);
416 405
417/* Module information */ 406/* Module information */
418MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); 407MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
diff --git a/drivers/input/touchscreen/zylonite-wm97xx.c b/drivers/input/touchscreen/zylonite-wm97xx.c
index f6328c0cded..add6e3b2802 100644
--- a/drivers/input/touchscreen/zylonite-wm97xx.c
+++ b/drivers/input/touchscreen/zylonite-wm97xx.c
@@ -223,19 +223,7 @@ static struct platform_driver zylonite_wm97xx_driver = {
223 .name = "wm97xx-touch", 223 .name = "wm97xx-touch",
224 }, 224 },
225}; 225};
226 226module_platform_driver(zylonite_wm97xx_driver);
227static int __init zylonite_wm97xx_init(void)
228{
229 return platform_driver_register(&zylonite_wm97xx_driver);
230}
231
232static void __exit zylonite_wm97xx_exit(void)
233{
234 platform_driver_unregister(&zylonite_wm97xx_driver);
235}
236
237module_init(zylonite_wm97xx_init);
238module_exit(zylonite_wm97xx_exit);
239 227
240/* Module information */ 228/* Module information */
241MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); 229MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");