diff options
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/intel_msic.c | 12 | ||||
-rw-r--r-- | drivers/mfd/jz4740-adc.c | 12 | ||||
-rw-r--r-- | drivers/mfd/mcp-sa11x0.c | 13 | ||||
-rw-r--r-- | drivers/mfd/pcf50633-adc.c | 12 | ||||
-rw-r--r-- | drivers/mfd/t7l66xb.c | 16 | ||||
-rw-r--r-- | drivers/mfd/tc6387xb.c | 14 | ||||
-rw-r--r-- | drivers/mfd/ti-ssp.c | 12 | ||||
-rw-r--r-- | drivers/mfd/twl4030-audio.c | 12 | ||||
-rw-r--r-- | drivers/mfd/twl4030-madc.c | 14 | ||||
-rw-r--r-- | drivers/mfd/twl6040-core.c | 13 |
10 files changed, 10 insertions, 120 deletions
diff --git a/drivers/mfd/intel_msic.c b/drivers/mfd/intel_msic.c index 97c27762174f..b76657eb0c51 100644 --- a/drivers/mfd/intel_msic.c +++ b/drivers/mfd/intel_msic.c | |||
@@ -485,17 +485,7 @@ static struct platform_driver intel_msic_driver = { | |||
485 | }, | 485 | }, |
486 | }; | 486 | }; |
487 | 487 | ||
488 | static int __init intel_msic_init(void) | 488 | module_platform_driver(intel_msic_driver); |
489 | { | ||
490 | return platform_driver_register(&intel_msic_driver); | ||
491 | } | ||
492 | module_init(intel_msic_init); | ||
493 | |||
494 | static void __exit intel_msic_exit(void) | ||
495 | { | ||
496 | platform_driver_unregister(&intel_msic_driver); | ||
497 | } | ||
498 | module_exit(intel_msic_exit); | ||
499 | 489 | ||
500 | MODULE_DESCRIPTION("Driver for Intel MSIC"); | 490 | MODULE_DESCRIPTION("Driver for Intel MSIC"); |
501 | MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); | 491 | MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); |
diff --git a/drivers/mfd/jz4740-adc.c b/drivers/mfd/jz4740-adc.c index ef39528088f2..83ef1021d773 100644 --- a/drivers/mfd/jz4740-adc.c +++ b/drivers/mfd/jz4740-adc.c | |||
@@ -338,17 +338,7 @@ static struct platform_driver jz4740_adc_driver = { | |||
338 | }, | 338 | }, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static int __init jz4740_adc_init(void) | 341 | module_platform_driver(jz4740_adc_driver); |
342 | { | ||
343 | return platform_driver_register(&jz4740_adc_driver); | ||
344 | } | ||
345 | module_init(jz4740_adc_init); | ||
346 | |||
347 | static void __exit jz4740_adc_exit(void) | ||
348 | { | ||
349 | platform_driver_unregister(&jz4740_adc_driver); | ||
350 | } | ||
351 | module_exit(jz4740_adc_exit); | ||
352 | 342 | ||
353 | MODULE_DESCRIPTION("JZ4740 SoC ADC driver"); | 343 | MODULE_DESCRIPTION("JZ4740 SoC ADC driver"); |
354 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 344 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |
diff --git a/drivers/mfd/mcp-sa11x0.c b/drivers/mfd/mcp-sa11x0.c index 2dab02d9ac8b..02c53a0766c4 100644 --- a/drivers/mfd/mcp-sa11x0.c +++ b/drivers/mfd/mcp-sa11x0.c | |||
@@ -257,18 +257,7 @@ static struct platform_driver mcp_sa11x0_driver = { | |||
257 | /* | 257 | /* |
258 | * This needs re-working | 258 | * This needs re-working |
259 | */ | 259 | */ |
260 | static int __init mcp_sa11x0_init(void) | 260 | module_platform_driver(mcp_sa11x0_driver); |
261 | { | ||
262 | return platform_driver_register(&mcp_sa11x0_driver); | ||
263 | } | ||
264 | |||
265 | static void __exit mcp_sa11x0_exit(void) | ||
266 | { | ||
267 | platform_driver_unregister(&mcp_sa11x0_driver); | ||
268 | } | ||
269 | |||
270 | module_init(mcp_sa11x0_init); | ||
271 | module_exit(mcp_sa11x0_exit); | ||
272 | 261 | ||
273 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); | 262 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); |
274 | MODULE_DESCRIPTION("SA11x0 multimedia communications port driver"); | 263 | MODULE_DESCRIPTION("SA11x0 multimedia communications port driver"); |
diff --git a/drivers/mfd/pcf50633-adc.c b/drivers/mfd/pcf50633-adc.c index aed0d2a9b032..3927c17e4175 100644 --- a/drivers/mfd/pcf50633-adc.c +++ b/drivers/mfd/pcf50633-adc.c | |||
@@ -249,17 +249,7 @@ static struct platform_driver pcf50633_adc_driver = { | |||
249 | .remove = __devexit_p(pcf50633_adc_remove), | 249 | .remove = __devexit_p(pcf50633_adc_remove), |
250 | }; | 250 | }; |
251 | 251 | ||
252 | static int __init pcf50633_adc_init(void) | 252 | module_platform_driver(pcf50633_adc_driver); |
253 | { | ||
254 | return platform_driver_register(&pcf50633_adc_driver); | ||
255 | } | ||
256 | module_init(pcf50633_adc_init); | ||
257 | |||
258 | static void __exit pcf50633_adc_exit(void) | ||
259 | { | ||
260 | platform_driver_unregister(&pcf50633_adc_driver); | ||
261 | } | ||
262 | module_exit(pcf50633_adc_exit); | ||
263 | 253 | ||
264 | MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>"); | 254 | MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>"); |
265 | MODULE_DESCRIPTION("PCF50633 adc driver"); | 255 | MODULE_DESCRIPTION("PCF50633 adc driver"); |
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 91ad21ef7721..2d9e8799e733 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c | |||
@@ -442,21 +442,7 @@ static struct platform_driver t7l66xb_platform_driver = { | |||
442 | 442 | ||
443 | /*--------------------------------------------------------------------------*/ | 443 | /*--------------------------------------------------------------------------*/ |
444 | 444 | ||
445 | static int __init t7l66xb_init(void) | 445 | module_platform_driver(t7l66xb_platform_driver); |
446 | { | ||
447 | int retval = 0; | ||
448 | |||
449 | retval = platform_driver_register(&t7l66xb_platform_driver); | ||
450 | return retval; | ||
451 | } | ||
452 | |||
453 | static void __exit t7l66xb_exit(void) | ||
454 | { | ||
455 | platform_driver_unregister(&t7l66xb_platform_driver); | ||
456 | } | ||
457 | |||
458 | module_init(t7l66xb_init); | ||
459 | module_exit(t7l66xb_exit); | ||
460 | 446 | ||
461 | MODULE_DESCRIPTION("Toshiba T7L66XB core driver"); | 447 | MODULE_DESCRIPTION("Toshiba T7L66XB core driver"); |
462 | MODULE_LICENSE("GPL v2"); | 448 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/mfd/tc6387xb.c b/drivers/mfd/tc6387xb.c index 71bc835324d8..d20a284ad4ba 100644 --- a/drivers/mfd/tc6387xb.c +++ b/drivers/mfd/tc6387xb.c | |||
@@ -234,19 +234,7 @@ static struct platform_driver tc6387xb_platform_driver = { | |||
234 | .resume = tc6387xb_resume, | 234 | .resume = tc6387xb_resume, |
235 | }; | 235 | }; |
236 | 236 | ||
237 | 237 | module_platform_driver(tc6387xb_platform_driver); | |
238 | static int __init tc6387xb_init(void) | ||
239 | { | ||
240 | return platform_driver_register(&tc6387xb_platform_driver); | ||
241 | } | ||
242 | |||
243 | static void __exit tc6387xb_exit(void) | ||
244 | { | ||
245 | platform_driver_unregister(&tc6387xb_platform_driver); | ||
246 | } | ||
247 | |||
248 | module_init(tc6387xb_init); | ||
249 | module_exit(tc6387xb_exit); | ||
250 | 238 | ||
251 | MODULE_DESCRIPTION("Toshiba TC6387XB core driver"); | 239 | MODULE_DESCRIPTION("Toshiba TC6387XB core driver"); |
252 | MODULE_LICENSE("GPL v2"); | 240 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/mfd/ti-ssp.c b/drivers/mfd/ti-ssp.c index af9ab0e5ca64..4fb0e6c8e8fe 100644 --- a/drivers/mfd/ti-ssp.c +++ b/drivers/mfd/ti-ssp.c | |||
@@ -458,17 +458,7 @@ static struct platform_driver ti_ssp_driver = { | |||
458 | } | 458 | } |
459 | }; | 459 | }; |
460 | 460 | ||
461 | static int __init ti_ssp_init(void) | 461 | module_platform_driver(ti_ssp_driver); |
462 | { | ||
463 | return platform_driver_register(&ti_ssp_driver); | ||
464 | } | ||
465 | module_init(ti_ssp_init); | ||
466 | |||
467 | static void __exit ti_ssp_exit(void) | ||
468 | { | ||
469 | platform_driver_unregister(&ti_ssp_driver); | ||
470 | } | ||
471 | module_exit(ti_ssp_exit); | ||
472 | 462 | ||
473 | MODULE_DESCRIPTION("Sequencer Serial Port (SSP) Driver"); | 463 | MODULE_DESCRIPTION("Sequencer Serial Port (SSP) Driver"); |
474 | MODULE_AUTHOR("Cyril Chemparathy"); | 464 | MODULE_AUTHOR("Cyril Chemparathy"); |
diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c index ae51ab5d0e5d..838ce4eb444e 100644 --- a/drivers/mfd/twl4030-audio.c +++ b/drivers/mfd/twl4030-audio.c | |||
@@ -261,17 +261,7 @@ static struct platform_driver twl4030_audio_driver = { | |||
261 | }, | 261 | }, |
262 | }; | 262 | }; |
263 | 263 | ||
264 | static int __devinit twl4030_audio_init(void) | 264 | module_platform_driver(twl4030_audio_driver); |
265 | { | ||
266 | return platform_driver_register(&twl4030_audio_driver); | ||
267 | } | ||
268 | module_init(twl4030_audio_init); | ||
269 | |||
270 | static void __devexit twl4030_audio_exit(void) | ||
271 | { | ||
272 | platform_driver_unregister(&twl4030_audio_driver); | ||
273 | } | ||
274 | module_exit(twl4030_audio_exit); | ||
275 | 265 | ||
276 | MODULE_AUTHOR("Peter Ujfalusi <peter.ujfalusi@ti.com>"); | 266 | MODULE_AUTHOR("Peter Ujfalusi <peter.ujfalusi@ti.com>"); |
277 | MODULE_LICENSE("GPL"); | 267 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c index 834f824d3c11..456ecb5ac4fe 100644 --- a/drivers/mfd/twl4030-madc.c +++ b/drivers/mfd/twl4030-madc.c | |||
@@ -807,19 +807,7 @@ static struct platform_driver twl4030_madc_driver = { | |||
807 | }, | 807 | }, |
808 | }; | 808 | }; |
809 | 809 | ||
810 | static int __init twl4030_madc_init(void) | 810 | module_platform_driver(twl4030_madc_driver); |
811 | { | ||
812 | return platform_driver_register(&twl4030_madc_driver); | ||
813 | } | ||
814 | |||
815 | module_init(twl4030_madc_init); | ||
816 | |||
817 | static void __exit twl4030_madc_exit(void) | ||
818 | { | ||
819 | platform_driver_unregister(&twl4030_madc_driver); | ||
820 | } | ||
821 | |||
822 | module_exit(twl4030_madc_exit); | ||
823 | 811 | ||
824 | MODULE_DESCRIPTION("TWL4030 ADC driver"); | 812 | MODULE_DESCRIPTION("TWL4030 ADC driver"); |
825 | MODULE_LICENSE("GPL"); | 813 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c index 268f80fd0439..7f06685187f4 100644 --- a/drivers/mfd/twl6040-core.c +++ b/drivers/mfd/twl6040-core.c | |||
@@ -619,18 +619,7 @@ static struct platform_driver twl6040_driver = { | |||
619 | }, | 619 | }, |
620 | }; | 620 | }; |
621 | 621 | ||
622 | static int __devinit twl6040_init(void) | 622 | module_platform_driver(twl6040_driver); |
623 | { | ||
624 | return platform_driver_register(&twl6040_driver); | ||
625 | } | ||
626 | module_init(twl6040_init); | ||
627 | |||
628 | static void __devexit twl6040_exit(void) | ||
629 | { | ||
630 | platform_driver_unregister(&twl6040_driver); | ||
631 | } | ||
632 | |||
633 | module_exit(twl6040_exit); | ||
634 | 623 | ||
635 | MODULE_DESCRIPTION("TWL6040 MFD"); | 624 | MODULE_DESCRIPTION("TWL6040 MFD"); |
636 | MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>"); | 625 | MODULE_AUTHOR("Misael Lopez Cruz <misael.lopez@ti.com>"); |