diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 10:20:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:03:03 -0500 |
commit | e00c3f555f1f404b38d44bcfe19db674a92c809a (patch) | |
tree | be5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung | |
parent | 29515d62db425796d82e2e2d9209a44b9e324ff4 (diff) |
ASoC: Convert Samsung directory to module_platform_driver
Saves some boilerplate code.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r-- | sound/soc/samsung/ac97.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/dma.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/i2s.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/idma.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/lowland.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/s3c2412-i2s.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx-i2s.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_hermes.c | 16 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | 16 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx_uda134x.c | 14 | ||||
-rw-r--r-- | sound/soc/samsung/smdk_wm8580pcm.c | 14 | ||||
-rw-r--r-- | sound/soc/samsung/spdif.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/speyside.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/speyside_wm8962.c | 12 |
15 files changed, 17 insertions, 175 deletions
diff --git a/sound/soc/samsung/ac97.c b/sound/soc/samsung/ac97.c index 09035afdeb74..7b9bf93e3701 100644 --- a/sound/soc/samsung/ac97.c +++ b/sound/soc/samsung/ac97.c | |||
@@ -509,17 +509,7 @@ static struct platform_driver s3c_ac97_driver = { | |||
509 | }, | 509 | }, |
510 | }; | 510 | }; |
511 | 511 | ||
512 | static int __init s3c_ac97_init(void) | 512 | module_platform_driver(s3c_ac97_driver); |
513 | { | ||
514 | return platform_driver_register(&s3c_ac97_driver); | ||
515 | } | ||
516 | module_init(s3c_ac97_init); | ||
517 | |||
518 | static void __exit s3c_ac97_exit(void) | ||
519 | { | ||
520 | platform_driver_unregister(&s3c_ac97_driver); | ||
521 | } | ||
522 | module_exit(s3c_ac97_exit); | ||
523 | 513 | ||
524 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); | 514 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); |
525 | MODULE_DESCRIPTION("AC97 driver for the Samsung SoC"); | 515 | MODULE_DESCRIPTION("AC97 driver for the Samsung SoC"); |
diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c index a68b26441784..797c3d5e79e5 100644 --- a/sound/soc/samsung/dma.c +++ b/sound/soc/samsung/dma.c | |||
@@ -458,17 +458,7 @@ static struct platform_driver asoc_dma_driver = { | |||
458 | .remove = __devexit_p(samsung_asoc_platform_remove), | 458 | .remove = __devexit_p(samsung_asoc_platform_remove), |
459 | }; | 459 | }; |
460 | 460 | ||
461 | static int __init samsung_asoc_init(void) | 461 | module_platform_driver(asoc_dma_driver); |
462 | { | ||
463 | return platform_driver_register(&asoc_dma_driver); | ||
464 | } | ||
465 | module_init(samsung_asoc_init); | ||
466 | |||
467 | static void __exit samsung_asoc_exit(void) | ||
468 | { | ||
469 | platform_driver_unregister(&asoc_dma_driver); | ||
470 | } | ||
471 | module_exit(samsung_asoc_exit); | ||
472 | 462 | ||
473 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 463 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
474 | MODULE_DESCRIPTION("Samsung ASoC DMA Driver"); | 464 | MODULE_DESCRIPTION("Samsung ASoC DMA Driver"); |
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 03ee8ce46a29..fb80f2886c70 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -1144,17 +1144,7 @@ static struct platform_driver samsung_i2s_driver = { | |||
1144 | }, | 1144 | }, |
1145 | }; | 1145 | }; |
1146 | 1146 | ||
1147 | static int __init samsung_i2s_init(void) | 1147 | module_platform_driver(samsung_i2s_driver); |
1148 | { | ||
1149 | return platform_driver_register(&samsung_i2s_driver); | ||
1150 | } | ||
1151 | module_init(samsung_i2s_init); | ||
1152 | |||
1153 | static void __exit samsung_i2s_exit(void) | ||
1154 | { | ||
1155 | platform_driver_unregister(&samsung_i2s_driver); | ||
1156 | } | ||
1157 | module_exit(samsung_i2s_exit); | ||
1158 | 1148 | ||
1159 | /* Module information */ | 1149 | /* Module information */ |
1160 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); | 1150 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); |
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c index c41178efc908..6ca3d8c221a0 100644 --- a/sound/soc/samsung/idma.c +++ b/sound/soc/samsung/idma.c | |||
@@ -437,17 +437,7 @@ static struct platform_driver asoc_idma_driver = { | |||
437 | .remove = __devexit_p(asoc_idma_platform_remove), | 437 | .remove = __devexit_p(asoc_idma_platform_remove), |
438 | }; | 438 | }; |
439 | 439 | ||
440 | static int __init asoc_idma_init(void) | 440 | module_platform_driver(asoc_idma_driver); |
441 | { | ||
442 | return platform_driver_register(&asoc_idma_driver); | ||
443 | } | ||
444 | module_init(asoc_idma_init); | ||
445 | |||
446 | static void __exit asoc_idma_exit(void) | ||
447 | { | ||
448 | platform_driver_unregister(&asoc_idma_driver); | ||
449 | } | ||
450 | module_exit(asoc_idma_exit); | ||
451 | 441 | ||
452 | MODULE_AUTHOR("Jaswinder Singh, <jassisinghbrar@gmail.com>"); | 442 | MODULE_AUTHOR("Jaswinder Singh, <jassisinghbrar@gmail.com>"); |
453 | MODULE_DESCRIPTION("Samsung ASoC IDMA Driver"); | 443 | MODULE_DESCRIPTION("Samsung ASoC IDMA Driver"); |
diff --git a/sound/soc/samsung/lowland.c b/sound/soc/samsung/lowland.c index eff1b4b65df4..4216a06b45f5 100644 --- a/sound/soc/samsung/lowland.c +++ b/sound/soc/samsung/lowland.c | |||
@@ -228,17 +228,7 @@ static struct platform_driver lowland_driver = { | |||
228 | .remove = __devexit_p(lowland_remove), | 228 | .remove = __devexit_p(lowland_remove), |
229 | }; | 229 | }; |
230 | 230 | ||
231 | static int __init lowland_audio_init(void) | 231 | module_platform_driver(lowland_driver); |
232 | { | ||
233 | return platform_driver_register(&lowland_driver); | ||
234 | } | ||
235 | module_init(lowland_audio_init); | ||
236 | |||
237 | static void __exit lowland_audio_exit(void) | ||
238 | { | ||
239 | platform_driver_unregister(&lowland_driver); | ||
240 | } | ||
241 | module_exit(lowland_audio_exit); | ||
242 | 232 | ||
243 | MODULE_DESCRIPTION("Lowland audio support"); | 233 | MODULE_DESCRIPTION("Lowland audio support"); |
244 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 234 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |
diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c index 2df2762f3000..beef63fca052 100644 --- a/sound/soc/samsung/pcm.c +++ b/sound/soc/samsung/pcm.c | |||
@@ -632,17 +632,7 @@ static struct platform_driver s3c_pcm_driver = { | |||
632 | }, | 632 | }, |
633 | }; | 633 | }; |
634 | 634 | ||
635 | static int __init s3c_pcm_init(void) | 635 | module_platform_driver(s3c_pcm_driver); |
636 | { | ||
637 | return platform_driver_register(&s3c_pcm_driver); | ||
638 | } | ||
639 | module_init(s3c_pcm_init); | ||
640 | |||
641 | static void __exit s3c_pcm_exit(void) | ||
642 | { | ||
643 | platform_driver_unregister(&s3c_pcm_driver); | ||
644 | } | ||
645 | module_exit(s3c_pcm_exit); | ||
646 | 636 | ||
647 | /* Module information */ | 637 | /* Module information */ |
648 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); | 638 | MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); |
diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c index 545773d0641c..72185078ddf8 100644 --- a/sound/soc/samsung/s3c2412-i2s.c +++ b/sound/soc/samsung/s3c2412-i2s.c | |||
@@ -184,17 +184,7 @@ static struct platform_driver s3c2412_iis_driver = { | |||
184 | }, | 184 | }, |
185 | }; | 185 | }; |
186 | 186 | ||
187 | static int __init s3c2412_i2s_init(void) | 187 | module_platform_driver(s3c2412_iis_driver); |
188 | { | ||
189 | return platform_driver_register(&s3c2412_iis_driver); | ||
190 | } | ||
191 | module_init(s3c2412_i2s_init); | ||
192 | |||
193 | static void __exit s3c2412_i2s_exit(void) | ||
194 | { | ||
195 | platform_driver_unregister(&s3c2412_iis_driver); | ||
196 | } | ||
197 | module_exit(s3c2412_i2s_exit); | ||
198 | 188 | ||
199 | /* Module information */ | 189 | /* Module information */ |
200 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 190 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c index 2a98bed2db02..c4aa4d412fbf 100644 --- a/sound/soc/samsung/s3c24xx-i2s.c +++ b/sound/soc/samsung/s3c24xx-i2s.c | |||
@@ -489,17 +489,7 @@ static struct platform_driver s3c24xx_iis_driver = { | |||
489 | }, | 489 | }, |
490 | }; | 490 | }; |
491 | 491 | ||
492 | static int __init s3c24xx_i2s_init(void) | 492 | module_platform_driver(s3c24xx_iis_driver); |
493 | { | ||
494 | return platform_driver_register(&s3c24xx_iis_driver); | ||
495 | } | ||
496 | module_init(s3c24xx_i2s_init); | ||
497 | |||
498 | static void __exit s3c24xx_i2s_exit(void) | ||
499 | { | ||
500 | platform_driver_unregister(&s3c24xx_iis_driver); | ||
501 | } | ||
502 | module_exit(s3c24xx_i2s_exit); | ||
503 | 493 | ||
504 | /* Module information */ | 494 | /* Module information */ |
505 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 495 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
diff --git a/sound/soc/samsung/s3c24xx_simtec_hermes.c b/sound/soc/samsung/s3c24xx_simtec_hermes.c index d125e79baf7f..502798100f21 100644 --- a/sound/soc/samsung/s3c24xx_simtec_hermes.c +++ b/sound/soc/samsung/s3c24xx_simtec_hermes.c | |||
@@ -114,21 +114,9 @@ static struct platform_driver simtec_audio_hermes_platdrv = { | |||
114 | .remove = __devexit_p(simtec_audio_remove), | 114 | .remove = __devexit_p(simtec_audio_remove), |
115 | }; | 115 | }; |
116 | 116 | ||
117 | MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd"); | 117 | module_platform_driver(simtec_audio_hermes_platdrv); |
118 | |||
119 | static int __init simtec_hermes_modinit(void) | ||
120 | { | ||
121 | return platform_driver_register(&simtec_audio_hermes_platdrv); | ||
122 | } | ||
123 | |||
124 | static void __exit simtec_hermes_modexit(void) | ||
125 | { | ||
126 | platform_driver_unregister(&simtec_audio_hermes_platdrv); | ||
127 | } | ||
128 | |||
129 | module_init(simtec_hermes_modinit); | ||
130 | module_exit(simtec_hermes_modexit); | ||
131 | 118 | ||
119 | MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd"); | ||
132 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 120 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |
133 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); | 121 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); |
134 | MODULE_LICENSE("GPL"); | 122 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c index 5e4fd46b7200..7324609833d8 100644 --- a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c +++ b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | |||
@@ -102,21 +102,9 @@ static struct platform_driver simtec_audio_tlv320aic23_platdrv = { | |||
102 | .remove = __devexit_p(simtec_audio_remove), | 102 | .remove = __devexit_p(simtec_audio_remove), |
103 | }; | 103 | }; |
104 | 104 | ||
105 | MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23"); | 105 | module_platform_driver(simtec_audio_tlv320aic32_driver); |
106 | |||
107 | static int __init simtec_tlv320aic23_modinit(void) | ||
108 | { | ||
109 | return platform_driver_register(&simtec_audio_tlv320aic23_platdrv); | ||
110 | } | ||
111 | |||
112 | static void __exit simtec_tlv320aic23_modexit(void) | ||
113 | { | ||
114 | platform_driver_unregister(&simtec_audio_tlv320aic23_platdrv); | ||
115 | } | ||
116 | |||
117 | module_init(simtec_tlv320aic23_modinit); | ||
118 | module_exit(simtec_tlv320aic23_modexit); | ||
119 | 106 | ||
107 | MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23"); | ||
120 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 108 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |
121 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); | 109 | MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); |
122 | MODULE_LICENSE("GPL"); | 110 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index 548c6ac6e7b0..62b69fb6a085 100644 --- a/sound/soc/samsung/s3c24xx_uda134x.c +++ b/sound/soc/samsung/s3c24xx_uda134x.c | |||
@@ -343,19 +343,7 @@ static struct platform_driver s3c24xx_uda134x_driver = { | |||
343 | }, | 343 | }, |
344 | }; | 344 | }; |
345 | 345 | ||
346 | static int __init s3c24xx_uda134x_init(void) | 346 | module_platform_driver(s3c24xx_uda134x_driver); |
347 | { | ||
348 | return platform_driver_register(&s3c24xx_uda134x_driver); | ||
349 | } | ||
350 | |||
351 | static void __exit s3c24xx_uda134x_exit(void) | ||
352 | { | ||
353 | platform_driver_unregister(&s3c24xx_uda134x_driver); | ||
354 | } | ||
355 | |||
356 | |||
357 | module_init(s3c24xx_uda134x_init); | ||
358 | module_exit(s3c24xx_uda134x_exit); | ||
359 | 347 | ||
360 | MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>"); | 348 | MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>"); |
361 | MODULE_DESCRIPTION("S3C24XX_UDA134X ALSA SoC audio driver"); | 349 | MODULE_DESCRIPTION("S3C24XX_UDA134X ALSA SoC audio driver"); |
diff --git a/sound/soc/samsung/smdk_wm8580pcm.c b/sound/soc/samsung/smdk_wm8580pcm.c index 0677473e6b60..49dfafbf3df6 100644 --- a/sound/soc/samsung/smdk_wm8580pcm.c +++ b/sound/soc/samsung/smdk_wm8580pcm.c | |||
@@ -188,19 +188,7 @@ static struct platform_driver snd_smdk_driver = { | |||
188 | .remove = __devexit_p(snd_smdk_remove), | 188 | .remove = __devexit_p(snd_smdk_remove), |
189 | }; | 189 | }; |
190 | 190 | ||
191 | static int __init smdk_audio_init(void) | 191 | module_platform_driver(snd_smdk_driver); |
192 | { | ||
193 | return platform_driver_register(&snd_smdk_driver); | ||
194 | } | ||
195 | |||
196 | module_init(smdk_audio_init); | ||
197 | |||
198 | static void __exit smdk_audio_exit(void) | ||
199 | { | ||
200 | platform_driver_unregister(&snd_smdk_driver); | ||
201 | } | ||
202 | |||
203 | module_exit(smdk_audio_exit); | ||
204 | 192 | ||
205 | MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>"); | 193 | MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>"); |
206 | MODULE_DESCRIPTION("ALSA SoC SMDK WM8580 for PCM"); | 194 | MODULE_DESCRIPTION("ALSA SoC SMDK WM8580 for PCM"); |
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c index a1fee1a414c9..a5a56a120345 100644 --- a/sound/soc/samsung/spdif.c +++ b/sound/soc/samsung/spdif.c | |||
@@ -483,17 +483,7 @@ static struct platform_driver samsung_spdif_driver = { | |||
483 | }, | 483 | }, |
484 | }; | 484 | }; |
485 | 485 | ||
486 | static int __init spdif_init(void) | 486 | module_platform_driver(samsung_spdif_driver); |
487 | { | ||
488 | return platform_driver_register(&samsung_spdif_driver); | ||
489 | } | ||
490 | module_init(spdif_init); | ||
491 | |||
492 | static void __exit spdif_exit(void) | ||
493 | { | ||
494 | platform_driver_unregister(&samsung_spdif_driver); | ||
495 | } | ||
496 | module_exit(spdif_exit); | ||
497 | 487 | ||
498 | MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); | 488 | MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); |
499 | MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); | 489 | MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); |
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c index efa5187f6197..11196b9b319e 100644 --- a/sound/soc/samsung/speyside.c +++ b/sound/soc/samsung/speyside.c | |||
@@ -347,17 +347,7 @@ static struct platform_driver speyside_driver = { | |||
347 | .remove = __devexit_p(speyside_remove), | 347 | .remove = __devexit_p(speyside_remove), |
348 | }; | 348 | }; |
349 | 349 | ||
350 | static int __init speyside_audio_init(void) | 350 | module_platform_driver(speyside_driver); |
351 | { | ||
352 | return platform_driver_register(&speyside_driver); | ||
353 | } | ||
354 | module_init(speyside_audio_init); | ||
355 | |||
356 | static void __exit speyside_audio_exit(void) | ||
357 | { | ||
358 | platform_driver_unregister(&speyside_driver); | ||
359 | } | ||
360 | module_exit(speyside_audio_exit); | ||
361 | 351 | ||
362 | MODULE_DESCRIPTION("Speyside audio support"); | 352 | MODULE_DESCRIPTION("Speyside audio support"); |
363 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 353 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |
diff --git a/sound/soc/samsung/speyside_wm8962.c b/sound/soc/samsung/speyside_wm8962.c index a681c8d74118..c09648efab61 100644 --- a/sound/soc/samsung/speyside_wm8962.c +++ b/sound/soc/samsung/speyside_wm8962.c | |||
@@ -249,17 +249,7 @@ static struct platform_driver speyside_wm8962_driver = { | |||
249 | .remove = __devexit_p(speyside_wm8962_remove), | 249 | .remove = __devexit_p(speyside_wm8962_remove), |
250 | }; | 250 | }; |
251 | 251 | ||
252 | static int __init speyside_wm8962_audio_init(void) | 252 | module_platform_driver(speyside_wm8962_driver); |
253 | { | ||
254 | return platform_driver_register(&speyside_wm8962_driver); | ||
255 | } | ||
256 | module_init(speyside_wm8962_audio_init); | ||
257 | |||
258 | static void __exit speyside_wm8962_audio_exit(void) | ||
259 | { | ||
260 | platform_driver_unregister(&speyside_wm8962_driver); | ||
261 | } | ||
262 | module_exit(speyside_wm8962_audio_exit); | ||
263 | 253 | ||
264 | MODULE_DESCRIPTION("Speyside WM8962 audio support"); | 254 | MODULE_DESCRIPTION("Speyside WM8962 audio support"); |
265 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 255 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |