aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 10:20:13 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-25 08:03:03 -0500
commite00c3f555f1f404b38d44bcfe19db674a92c809a (patch)
treebe5593a830a07919b0bdc759424f031138c0b0cc /sound/soc/samsung
parent29515d62db425796d82e2e2d9209a44b9e324ff4 (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.c12
-rw-r--r--sound/soc/samsung/dma.c12
-rw-r--r--sound/soc/samsung/i2s.c12
-rw-r--r--sound/soc/samsung/idma.c12
-rw-r--r--sound/soc/samsung/lowland.c12
-rw-r--r--sound/soc/samsung/pcm.c12
-rw-r--r--sound/soc/samsung/s3c2412-i2s.c12
-rw-r--r--sound/soc/samsung/s3c24xx-i2s.c12
-rw-r--r--sound/soc/samsung/s3c24xx_simtec_hermes.c16
-rw-r--r--sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c16
-rw-r--r--sound/soc/samsung/s3c24xx_uda134x.c14
-rw-r--r--sound/soc/samsung/smdk_wm8580pcm.c14
-rw-r--r--sound/soc/samsung/spdif.c12
-rw-r--r--sound/soc/samsung/speyside.c12
-rw-r--r--sound/soc/samsung/speyside_wm8962.c12
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
512static int __init s3c_ac97_init(void) 512module_platform_driver(s3c_ac97_driver);
513{
514 return platform_driver_register(&s3c_ac97_driver);
515}
516module_init(s3c_ac97_init);
517
518static void __exit s3c_ac97_exit(void)
519{
520 platform_driver_unregister(&s3c_ac97_driver);
521}
522module_exit(s3c_ac97_exit);
523 513
524MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); 514MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>");
525MODULE_DESCRIPTION("AC97 driver for the Samsung SoC"); 515MODULE_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
461static int __init samsung_asoc_init(void) 461module_platform_driver(asoc_dma_driver);
462{
463 return platform_driver_register(&asoc_dma_driver);
464}
465module_init(samsung_asoc_init);
466
467static void __exit samsung_asoc_exit(void)
468{
469 platform_driver_unregister(&asoc_dma_driver);
470}
471module_exit(samsung_asoc_exit);
472 462
473MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); 463MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>");
474MODULE_DESCRIPTION("Samsung ASoC DMA Driver"); 464MODULE_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
1147static int __init samsung_i2s_init(void) 1147module_platform_driver(samsung_i2s_driver);
1148{
1149 return platform_driver_register(&samsung_i2s_driver);
1150}
1151module_init(samsung_i2s_init);
1152
1153static void __exit samsung_i2s_exit(void)
1154{
1155 platform_driver_unregister(&samsung_i2s_driver);
1156}
1157module_exit(samsung_i2s_exit);
1158 1148
1159/* Module information */ 1149/* Module information */
1160MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); 1150MODULE_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
440static int __init asoc_idma_init(void) 440module_platform_driver(asoc_idma_driver);
441{
442 return platform_driver_register(&asoc_idma_driver);
443}
444module_init(asoc_idma_init);
445
446static void __exit asoc_idma_exit(void)
447{
448 platform_driver_unregister(&asoc_idma_driver);
449}
450module_exit(asoc_idma_exit);
451 441
452MODULE_AUTHOR("Jaswinder Singh, <jassisinghbrar@gmail.com>"); 442MODULE_AUTHOR("Jaswinder Singh, <jassisinghbrar@gmail.com>");
453MODULE_DESCRIPTION("Samsung ASoC IDMA Driver"); 443MODULE_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
231static int __init lowland_audio_init(void) 231module_platform_driver(lowland_driver);
232{
233 return platform_driver_register(&lowland_driver);
234}
235module_init(lowland_audio_init);
236
237static void __exit lowland_audio_exit(void)
238{
239 platform_driver_unregister(&lowland_driver);
240}
241module_exit(lowland_audio_exit);
242 232
243MODULE_DESCRIPTION("Lowland audio support"); 233MODULE_DESCRIPTION("Lowland audio support");
244MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); 234MODULE_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
635static int __init s3c_pcm_init(void) 635module_platform_driver(s3c_pcm_driver);
636{
637 return platform_driver_register(&s3c_pcm_driver);
638}
639module_init(s3c_pcm_init);
640
641static void __exit s3c_pcm_exit(void)
642{
643 platform_driver_unregister(&s3c_pcm_driver);
644}
645module_exit(s3c_pcm_exit);
646 636
647/* Module information */ 637/* Module information */
648MODULE_AUTHOR("Jaswinder Singh, <jassi.brar@samsung.com>"); 638MODULE_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
187static int __init s3c2412_i2s_init(void) 187module_platform_driver(s3c2412_iis_driver);
188{
189 return platform_driver_register(&s3c2412_iis_driver);
190}
191module_init(s3c2412_i2s_init);
192
193static void __exit s3c2412_i2s_exit(void)
194{
195 platform_driver_unregister(&s3c2412_iis_driver);
196}
197module_exit(s3c2412_i2s_exit);
198 188
199/* Module information */ 189/* Module information */
200MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); 190MODULE_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
492static int __init s3c24xx_i2s_init(void) 492module_platform_driver(s3c24xx_iis_driver);
493{
494 return platform_driver_register(&s3c24xx_iis_driver);
495}
496module_init(s3c24xx_i2s_init);
497
498static void __exit s3c24xx_i2s_exit(void)
499{
500 platform_driver_unregister(&s3c24xx_iis_driver);
501}
502module_exit(s3c24xx_i2s_exit);
503 493
504/* Module information */ 494/* Module information */
505MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); 495MODULE_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
117MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd"); 117module_platform_driver(simtec_audio_hermes_platdrv);
118
119static int __init simtec_hermes_modinit(void)
120{
121 return platform_driver_register(&simtec_audio_hermes_platdrv);
122}
123
124static void __exit simtec_hermes_modexit(void)
125{
126 platform_driver_unregister(&simtec_audio_hermes_platdrv);
127}
128
129module_init(simtec_hermes_modinit);
130module_exit(simtec_hermes_modexit);
131 118
119MODULE_ALIAS("platform:s3c24xx-simtec-hermes-snd");
132MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); 120MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
133MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); 121MODULE_DESCRIPTION("ALSA SoC Simtec Audio support");
134MODULE_LICENSE("GPL"); 122MODULE_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
105MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23"); 105module_platform_driver(simtec_audio_tlv320aic32_driver);
106
107static int __init simtec_tlv320aic23_modinit(void)
108{
109 return platform_driver_register(&simtec_audio_tlv320aic23_platdrv);
110}
111
112static void __exit simtec_tlv320aic23_modexit(void)
113{
114 platform_driver_unregister(&simtec_audio_tlv320aic23_platdrv);
115}
116
117module_init(simtec_tlv320aic23_modinit);
118module_exit(simtec_tlv320aic23_modexit);
119 106
107MODULE_ALIAS("platform:s3c24xx-simtec-tlv320aic23");
120MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); 108MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
121MODULE_DESCRIPTION("ALSA SoC Simtec Audio support"); 109MODULE_DESCRIPTION("ALSA SoC Simtec Audio support");
122MODULE_LICENSE("GPL"); 110MODULE_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
346static int __init s3c24xx_uda134x_init(void) 346module_platform_driver(s3c24xx_uda134x_driver);
347{
348 return platform_driver_register(&s3c24xx_uda134x_driver);
349}
350
351static void __exit s3c24xx_uda134x_exit(void)
352{
353 platform_driver_unregister(&s3c24xx_uda134x_driver);
354}
355
356
357module_init(s3c24xx_uda134x_init);
358module_exit(s3c24xx_uda134x_exit);
359 347
360MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>"); 348MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>");
361MODULE_DESCRIPTION("S3C24XX_UDA134X ALSA SoC audio driver"); 349MODULE_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
191static int __init smdk_audio_init(void) 191module_platform_driver(snd_smdk_driver);
192{
193 return platform_driver_register(&snd_smdk_driver);
194}
195
196module_init(smdk_audio_init);
197
198static void __exit smdk_audio_exit(void)
199{
200 platform_driver_unregister(&snd_smdk_driver);
201}
202
203module_exit(smdk_audio_exit);
204 192
205MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>"); 193MODULE_AUTHOR("Sangbeom Kim, <sbkim73@samsung.com>");
206MODULE_DESCRIPTION("ALSA SoC SMDK WM8580 for PCM"); 194MODULE_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
486static int __init spdif_init(void) 486module_platform_driver(samsung_spdif_driver);
487{
488 return platform_driver_register(&samsung_spdif_driver);
489}
490module_init(spdif_init);
491
492static void __exit spdif_exit(void)
493{
494 platform_driver_unregister(&samsung_spdif_driver);
495}
496module_exit(spdif_exit);
497 487
498MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); 488MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>");
499MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); 489MODULE_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
350static int __init speyside_audio_init(void) 350module_platform_driver(speyside_driver);
351{
352 return platform_driver_register(&speyside_driver);
353}
354module_init(speyside_audio_init);
355
356static void __exit speyside_audio_exit(void)
357{
358 platform_driver_unregister(&speyside_driver);
359}
360module_exit(speyside_audio_exit);
361 351
362MODULE_DESCRIPTION("Speyside audio support"); 352MODULE_DESCRIPTION("Speyside audio support");
363MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); 353MODULE_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
252static int __init speyside_wm8962_audio_init(void) 252module_platform_driver(speyside_wm8962_driver);
253{
254 return platform_driver_register(&speyside_wm8962_driver);
255}
256module_init(speyside_wm8962_audio_init);
257
258static void __exit speyside_wm8962_audio_exit(void)
259{
260 platform_driver_unregister(&speyside_wm8962_driver);
261}
262module_exit(speyside_wm8962_audio_exit);
263 253
264MODULE_DESCRIPTION("Speyside WM8962 audio support"); 254MODULE_DESCRIPTION("Speyside WM8962 audio support");
265MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); 255MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");