diff options
-rw-r--r-- | sound/soc/atmel/atmel_ssc_dai.c | 11 | ||||
-rw-r--r-- | sound/soc/au1x/psc-ac97.c | 3 | ||||
-rw-r--r-- | sound/soc/au1x/psc-i2s.c | 3 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-ac97.c | 12 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-i2s.c | 12 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-i2s.c | 12 | ||||
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 10 | ||||
-rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 13 | ||||
-rw-r--r-- | sound/soc/pxa/pxa-ssp.c | 12 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 12 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-i2s.c | 13 | ||||
-rw-r--r-- | sound/soc/s3c24xx/s3c2412-i2s.c | 13 | ||||
-rw-r--r-- | sound/soc/s3c24xx/s3c2443-ac97.c | 13 | ||||
-rw-r--r-- | sound/soc/s3c24xx/s3c24xx-i2s.c | 12 | ||||
-rw-r--r-- | sound/soc/sh/hac.c | 12 | ||||
-rw-r--r-- | sound/soc/sh/ssi.c | 12 |
16 files changed, 172 insertions, 3 deletions
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index d9b874c5bf37..c9f02edd7308 100644 --- a/sound/soc/atmel/atmel_ssc_dai.c +++ b/sound/soc/atmel/atmel_ssc_dai.c | |||
@@ -772,6 +772,17 @@ struct snd_soc_dai atmel_ssc_dai[NUM_SSC_DEVICES] = { | |||
772 | }; | 772 | }; |
773 | EXPORT_SYMBOL_GPL(atmel_ssc_dai); | 773 | EXPORT_SYMBOL_GPL(atmel_ssc_dai); |
774 | 774 | ||
775 | static int __devinit atmel_ssc_modinit(void) | ||
776 | { | ||
777 | return snd_soc_register_dais(atmel_ssc_dai, ARRAY_SIZE(atmel_ssc_dai)); | ||
778 | } | ||
779 | module_init(snd_soc_init); | ||
780 | |||
781 | static void __exit snd_soc_exit(void) | ||
782 | { | ||
783 | snd_soc_unregister_dais(atmel_ssc_dai, ARRAY_SIZE(atmel_ssc_dai)); | ||
784 | } | ||
785 | |||
775 | /* Module information */ | 786 | /* Module information */ |
776 | MODULE_AUTHOR("Sedji Gaouaou, sedji.gaouaou@atmel.com, www.atmel.com"); | 787 | MODULE_AUTHOR("Sedji Gaouaou, sedji.gaouaou@atmel.com, www.atmel.com"); |
777 | MODULE_DESCRIPTION("ATMEL SSC ASoC Interface"); | 788 | MODULE_DESCRIPTION("ATMEL SSC ASoC Interface"); |
diff --git a/sound/soc/au1x/psc-ac97.c b/sound/soc/au1x/psc-ac97.c index a1e824d29cf9..f0e30aec7f23 100644 --- a/sound/soc/au1x/psc-ac97.c +++ b/sound/soc/au1x/psc-ac97.c | |||
@@ -371,11 +371,12 @@ EXPORT_SYMBOL_GPL(au1xpsc_ac97_dai); | |||
371 | static int __init au1xpsc_ac97_init(void) | 371 | static int __init au1xpsc_ac97_init(void) |
372 | { | 372 | { |
373 | au1xpsc_ac97_workdata = NULL; | 373 | au1xpsc_ac97_workdata = NULL; |
374 | return 0; | 374 | return snd_soc_register_dai(&au1xpsc_ac97_dai); |
375 | } | 375 | } |
376 | 376 | ||
377 | static void __exit au1xpsc_ac97_exit(void) | 377 | static void __exit au1xpsc_ac97_exit(void) |
378 | { | 378 | { |
379 | snd_soc_unregister_dai(&au1xpsc_ac97_dai); | ||
379 | } | 380 | } |
380 | 381 | ||
381 | module_init(au1xpsc_ac97_init); | 382 | module_init(au1xpsc_ac97_init); |
diff --git a/sound/soc/au1x/psc-i2s.c b/sound/soc/au1x/psc-i2s.c index 16f97462ea15..f916de4400ed 100644 --- a/sound/soc/au1x/psc-i2s.c +++ b/sound/soc/au1x/psc-i2s.c | |||
@@ -396,11 +396,12 @@ EXPORT_SYMBOL(au1xpsc_i2s_dai); | |||
396 | static int __init au1xpsc_i2s_init(void) | 396 | static int __init au1xpsc_i2s_init(void) |
397 | { | 397 | { |
398 | au1xpsc_i2s_workdata = NULL; | 398 | au1xpsc_i2s_workdata = NULL; |
399 | return 0; | 399 | return snd_soc_register_dai(&au1xpsc_i2s_dai); |
400 | } | 400 | } |
401 | 401 | ||
402 | static void __exit au1xpsc_i2s_exit(void) | 402 | static void __exit au1xpsc_i2s_exit(void) |
403 | { | 403 | { |
404 | snd_soc_unregister_dai(&au1xpsc_i2s_dai); | ||
404 | } | 405 | } |
405 | 406 | ||
406 | module_init(au1xpsc_i2s_init); | 407 | module_init(au1xpsc_i2s_init); |
diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index c602ce109d52..ad3efeeb6d44 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c | |||
@@ -431,6 +431,18 @@ struct snd_soc_dai bfin_ac97_dai = { | |||
431 | }; | 431 | }; |
432 | EXPORT_SYMBOL_GPL(bfin_ac97_dai); | 432 | EXPORT_SYMBOL_GPL(bfin_ac97_dai); |
433 | 433 | ||
434 | static int __devinit bfin_ac97_init(void) | ||
435 | { | ||
436 | return snd_soc_register_dai(&bfin_ac97_dai); | ||
437 | } | ||
438 | module_init(bfin_ac97_init); | ||
439 | |||
440 | static void __exit bfin_ac97_exit(void) | ||
441 | { | ||
442 | snd_soc_unregister_dai(&bfin_ac97_dai); | ||
443 | } | ||
444 | module_exit(bfin_ac97_exit); | ||
445 | |||
434 | MODULE_AUTHOR("Roy Huang"); | 446 | MODULE_AUTHOR("Roy Huang"); |
435 | MODULE_DESCRIPTION("AC97 driver for ADI Blackfin"); | 447 | MODULE_DESCRIPTION("AC97 driver for ADI Blackfin"); |
436 | MODULE_LICENSE("GPL"); | 448 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c index 9f8ce87cc6c6..0d58d2b6db6a 100644 --- a/sound/soc/blackfin/bf5xx-i2s.c +++ b/sound/soc/blackfin/bf5xx-i2s.c | |||
@@ -313,6 +313,18 @@ struct snd_soc_dai bf5xx_i2s_dai = { | |||
313 | }; | 313 | }; |
314 | EXPORT_SYMBOL_GPL(bf5xx_i2s_dai); | 314 | EXPORT_SYMBOL_GPL(bf5xx_i2s_dai); |
315 | 315 | ||
316 | static int __devinit bfin_i2s_init(void) | ||
317 | { | ||
318 | return snd_soc_register_dai(&bfin_i2s_dai); | ||
319 | } | ||
320 | module_init(bfin_i2s_init); | ||
321 | |||
322 | static void __exit bfin_i2s_exit(void) | ||
323 | { | ||
324 | snd_soc_unregister_dai(&bfin_i2s_dai); | ||
325 | } | ||
326 | module_exit(bfin_i2s_exit); | ||
327 | |||
316 | /* Module information */ | 328 | /* Module information */ |
317 | MODULE_AUTHOR("Cliff Cai"); | 329 | MODULE_AUTHOR("Cliff Cai"); |
318 | MODULE_DESCRIPTION("I2S driver for ADI Blackfin"); | 330 | MODULE_DESCRIPTION("I2S driver for ADI Blackfin"); |
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c index 8b99efbc64c6..d89fc2f009ab 100644 --- a/sound/soc/davinci/davinci-i2s.c +++ b/sound/soc/davinci/davinci-i2s.c | |||
@@ -481,6 +481,18 @@ struct snd_soc_dai davinci_i2s_dai = { | |||
481 | }; | 481 | }; |
482 | EXPORT_SYMBOL_GPL(davinci_i2s_dai); | 482 | EXPORT_SYMBOL_GPL(davinci_i2s_dai); |
483 | 483 | ||
484 | static int __devinit davinci_i2s_init(void) | ||
485 | { | ||
486 | return snd_soc_register_dai(&davinci_i2s_dai); | ||
487 | } | ||
488 | module_init(davinci_i2s_init); | ||
489 | |||
490 | static void __exit davinci_i2s_exit(void) | ||
491 | { | ||
492 | snd_soc_unregister_dai(&davinci_i2s_dai); | ||
493 | } | ||
494 | module_exit(davinci_i2s_exit); | ||
495 | |||
484 | MODULE_AUTHOR("Vladimir Barinov"); | 496 | MODULE_AUTHOR("Vladimir Barinov"); |
485 | MODULE_DESCRIPTION("TI DAVINCI I2S (McBSP) SoC Interface"); | 497 | MODULE_DESCRIPTION("TI DAVINCI I2S (McBSP) SoC Interface"); |
486 | MODULE_LICENSE("GPL"); | 498 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 52c290bb47bf..c6d6eb71dc1d 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -673,6 +673,14 @@ struct snd_soc_dai *fsl_ssi_create_dai(struct fsl_ssi_info *ssi_info) | |||
673 | fsl_ssi_dai->private_data = ssi_private; | 673 | fsl_ssi_dai->private_data = ssi_private; |
674 | fsl_ssi_dai->name = ssi_private->name; | 674 | fsl_ssi_dai->name = ssi_private->name; |
675 | fsl_ssi_dai->id = ssi_info->id; | 675 | fsl_ssi_dai->id = ssi_info->id; |
676 | fsl_ssi_dai->dev = ssi_info->dev; | ||
677 | |||
678 | ret = snd_soc_register_dai(fsl_ssi_dai); | ||
679 | if (ret != 0) { | ||
680 | dev_err(ssi_info->dev, "failed to register DAI: %d\n", ret); | ||
681 | kfree(fsl_ssi_dai); | ||
682 | return NULL; | ||
683 | } | ||
676 | 684 | ||
677 | return fsl_ssi_dai; | 685 | return fsl_ssi_dai; |
678 | } | 686 | } |
@@ -690,6 +698,8 @@ void fsl_ssi_destroy_dai(struct snd_soc_dai *fsl_ssi_dai) | |||
690 | 698 | ||
691 | device_remove_file(ssi_private->dev, &ssi_private->dev_attr); | 699 | device_remove_file(ssi_private->dev, &ssi_private->dev_attr); |
692 | 700 | ||
701 | snd_soc_unregister_dai(&ssi_private->cpu_dai); | ||
702 | |||
693 | kfree(ssi_private); | 703 | kfree(ssi_private); |
694 | } | 704 | } |
695 | EXPORT_SYMBOL_GPL(fsl_ssi_destroy_dai); | 705 | EXPORT_SYMBOL_GPL(fsl_ssi_destroy_dai); |
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index e8f1314762d7..41cab2034163 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -499,6 +499,19 @@ struct snd_soc_dai omap_mcbsp_dai[] = { | |||
499 | 499 | ||
500 | EXPORT_SYMBOL_GPL(omap_mcbsp_dai); | 500 | EXPORT_SYMBOL_GPL(omap_mcbsp_dai); |
501 | 501 | ||
502 | static int __devinit omap_mcbsp_init(void) | ||
503 | { | ||
504 | return snd_soc_register_dais(omap_mcbsp_dai, | ||
505 | ARRAY_SIZE(omap_mcbsp_dai)); | ||
506 | } | ||
507 | module_init(omap_mcbsp_init); | ||
508 | |||
509 | static void __exit omap_mcbsp_exit(void) | ||
510 | { | ||
511 | snd_soc_unregister_dais(omap_mcbsp_dai, ARRAY_SIZE(omap_mcbsp_dai)); | ||
512 | } | ||
513 | module_exit(omap_mcbsp_exit); | ||
514 | |||
502 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>"); | 515 | MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>"); |
503 | MODULE_DESCRIPTION("OMAP I2S SoC Interface"); | 516 | MODULE_DESCRIPTION("OMAP I2S SoC Interface"); |
504 | MODULE_LICENSE("GPL"); | 517 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index 73fa10defcca..3587f2fae5f1 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -913,6 +913,18 @@ struct snd_soc_dai pxa_ssp_dai[] = { | |||
913 | }; | 913 | }; |
914 | EXPORT_SYMBOL_GPL(pxa_ssp_dai); | 914 | EXPORT_SYMBOL_GPL(pxa_ssp_dai); |
915 | 915 | ||
916 | static int __devinit pxa_ssp_init(void) | ||
917 | { | ||
918 | return snd_soc_register_dais(pxa_ssp_dai, ARRAY_SIZE(pxa_ssp_dai)); | ||
919 | } | ||
920 | module_init(pxa_ssp_init); | ||
921 | |||
922 | static void __exit pxa_ssp_exit(void) | ||
923 | { | ||
924 | snd_soc_unregister_dais(pxa_ssp_dai, ARRAY_SIZE(pxa_ssp_dai)); | ||
925 | } | ||
926 | module_exit(pxa_ssp_exit); | ||
927 | |||
916 | /* Module information */ | 928 | /* Module information */ |
917 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 929 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |
918 | MODULE_DESCRIPTION("PXA SSP/PCM SoC Interface"); | 930 | MODULE_DESCRIPTION("PXA SSP/PCM SoC Interface"); |
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index 8eed80d5675d..f6249d5b492e 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c | |||
@@ -228,6 +228,18 @@ struct snd_soc_dai pxa_ac97_dai[] = { | |||
228 | EXPORT_SYMBOL_GPL(pxa_ac97_dai); | 228 | EXPORT_SYMBOL_GPL(pxa_ac97_dai); |
229 | EXPORT_SYMBOL_GPL(soc_ac97_ops); | 229 | EXPORT_SYMBOL_GPL(soc_ac97_ops); |
230 | 230 | ||
231 | static int __devinit pxa_ac97_init(void) | ||
232 | { | ||
233 | return snd_soc_register_dais(pxa_ac97_dai, ARRAY_SIZE(pxa_ac97_dai)); | ||
234 | } | ||
235 | module_init(pxa_ac97_init); | ||
236 | |||
237 | static void __exit pxa_ac97_exit(void) | ||
238 | { | ||
239 | snd_soc_unregister_dais(pxa_ac97_dai, ARRAY_SIZE(pxa_ac97_dai)); | ||
240 | } | ||
241 | module_exit(pxa_ac97_exit); | ||
242 | |||
231 | MODULE_AUTHOR("Nicolas Pitre"); | 243 | MODULE_AUTHOR("Nicolas Pitre"); |
232 | MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); | 244 | MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); |
233 | MODULE_LICENSE("GPL"); | 245 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index 314973ace6dc..517991fb1099 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c | |||
@@ -364,12 +364,23 @@ EXPORT_SYMBOL_GPL(pxa_i2s_dai); | |||
364 | 364 | ||
365 | static int pxa2xx_i2s_probe(struct platform_device *dev) | 365 | static int pxa2xx_i2s_probe(struct platform_device *dev) |
366 | { | 366 | { |
367 | int ret; | ||
368 | |||
367 | clk_i2s = clk_get(&dev->dev, "I2SCLK"); | 369 | clk_i2s = clk_get(&dev->dev, "I2SCLK"); |
368 | return IS_ERR(clk_i2s) ? PTR_ERR(clk_i2s) : 0; | 370 | if (IS_ERR(clk_i2s)) |
371 | return PTR_ERR(clk_i2s); | ||
372 | |||
373 | pxa_i2s_dai.dev = &dev->dev; | ||
374 | ret = snd_soc_register_dai(&pxa_i2s_dai); | ||
375 | if (ret != 0) | ||
376 | clk_put(clk_i2s); | ||
377 | |||
378 | return ret; | ||
369 | } | 379 | } |
370 | 380 | ||
371 | static int __devexit pxa2xx_i2s_remove(struct platform_device *dev) | 381 | static int __devexit pxa2xx_i2s_remove(struct platform_device *dev) |
372 | { | 382 | { |
383 | snd_soc_unregister_dai(&pxa_i2s_dai); | ||
373 | clk_put(clk_i2s); | 384 | clk_put(clk_i2s); |
374 | clk_i2s = ERR_PTR(-ENOENT); | 385 | clk_i2s = ERR_PTR(-ENOENT); |
375 | return 0; | 386 | return 0; |
diff --git a/sound/soc/s3c24xx/s3c2412-i2s.c b/sound/soc/s3c24xx/s3c2412-i2s.c index 75f87c3c74d0..2cf050791562 100644 --- a/sound/soc/s3c24xx/s3c2412-i2s.c +++ b/sound/soc/s3c24xx/s3c2412-i2s.c | |||
@@ -736,6 +736,19 @@ struct snd_soc_dai s3c2412_i2s_dai = { | |||
736 | }; | 736 | }; |
737 | EXPORT_SYMBOL_GPL(s3c2412_i2s_dai); | 737 | EXPORT_SYMBOL_GPL(s3c2412_i2s_dai); |
738 | 738 | ||
739 | static int __devinit s3c2412_i2s_init(void) | ||
740 | { | ||
741 | return snd_soc_register_dai(&s3c2412_i2s_dai); | ||
742 | } | ||
743 | module_init(s3c2412_i2s_init); | ||
744 | |||
745 | static void __exit s3c2412_i2s_exit(void) | ||
746 | { | ||
747 | snd_soc_unregister_dai(&s3c2412_i2s_dai); | ||
748 | } | ||
749 | module_exit(s3c2412_i2s_exit); | ||
750 | |||
751 | |||
739 | /* Module information */ | 752 | /* Module information */ |
740 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 753 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
741 | MODULE_DESCRIPTION("S3C2412 I2S SoC Interface"); | 754 | MODULE_DESCRIPTION("S3C2412 I2S SoC Interface"); |
diff --git a/sound/soc/s3c24xx/s3c2443-ac97.c b/sound/soc/s3c24xx/s3c2443-ac97.c index f0bc9b7e0840..7360c6d913bd 100644 --- a/sound/soc/s3c24xx/s3c2443-ac97.c +++ b/sound/soc/s3c24xx/s3c2443-ac97.c | |||
@@ -396,6 +396,19 @@ struct snd_soc_dai s3c2443_ac97_dai[] = { | |||
396 | EXPORT_SYMBOL_GPL(s3c2443_ac97_dai); | 396 | EXPORT_SYMBOL_GPL(s3c2443_ac97_dai); |
397 | EXPORT_SYMBOL_GPL(soc_ac97_ops); | 397 | EXPORT_SYMBOL_GPL(soc_ac97_ops); |
398 | 398 | ||
399 | static int __devinit s3c2443_ac97_init(void) | ||
400 | { | ||
401 | return snd_soc_register_dai(&s3c2443_ac97_dai); | ||
402 | } | ||
403 | module_init(s3c2443_ac97_init); | ||
404 | |||
405 | static void __exit s3c2443_ac97_exit(void) | ||
406 | { | ||
407 | snd_soc_unregister_dai(&s3c2443_ac97_dai); | ||
408 | } | ||
409 | module_exit(s3c2443_ac97_exit); | ||
410 | |||
411 | |||
399 | MODULE_AUTHOR("Graeme Gregory"); | 412 | MODULE_AUTHOR("Graeme Gregory"); |
400 | MODULE_DESCRIPTION("AC97 driver for the Samsung s3c2443 chip"); | 413 | MODULE_DESCRIPTION("AC97 driver for the Samsung s3c2443 chip"); |
401 | MODULE_LICENSE("GPL"); | 414 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/s3c24xx/s3c24xx-i2s.c b/sound/soc/s3c24xx/s3c24xx-i2s.c index 45fe8f7c88ab..897b1ac92cef 100644 --- a/sound/soc/s3c24xx/s3c24xx-i2s.c +++ b/sound/soc/s3c24xx/s3c24xx-i2s.c | |||
@@ -482,6 +482,18 @@ struct snd_soc_dai s3c24xx_i2s_dai = { | |||
482 | }; | 482 | }; |
483 | EXPORT_SYMBOL_GPL(s3c24xx_i2s_dai); | 483 | EXPORT_SYMBOL_GPL(s3c24xx_i2s_dai); |
484 | 484 | ||
485 | static int __devinit s3c24xx_i2s_init(void) | ||
486 | { | ||
487 | return snd_soc_register_dai(&s3c24xx_i2s_dai); | ||
488 | } | ||
489 | module_init(s3c24xx_i2s_init); | ||
490 | |||
491 | static void __exit s3c24xx_i2s_exit(void) | ||
492 | { | ||
493 | snd_soc_unregister_dai(&s3c24xx_i2s_dai); | ||
494 | } | ||
495 | module_exit(s3c24xx_i2s_exit); | ||
496 | |||
485 | /* Module information */ | 497 | /* Module information */ |
486 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 498 | MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
487 | MODULE_DESCRIPTION("s3c24xx I2S SoC Interface"); | 499 | MODULE_DESCRIPTION("s3c24xx I2S SoC Interface"); |
diff --git a/sound/soc/sh/hac.c b/sound/soc/sh/hac.c index c435913c60eb..9169bad1acfb 100644 --- a/sound/soc/sh/hac.c +++ b/sound/soc/sh/hac.c | |||
@@ -314,6 +314,18 @@ struct snd_soc_dai sh4_hac_dai[] = { | |||
314 | }; | 314 | }; |
315 | EXPORT_SYMBOL_GPL(sh4_hac_dai); | 315 | EXPORT_SYMBOL_GPL(sh4_hac_dai); |
316 | 316 | ||
317 | static int __devinit sh4_hac_init(void) | ||
318 | { | ||
319 | return snd_soc_register_dais(sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai)); | ||
320 | } | ||
321 | module_init(sh4_hac_init); | ||
322 | |||
323 | static void __exit sh4_hac_exit(void) | ||
324 | { | ||
325 | snd_soc_unregister_dais(sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai)); | ||
326 | } | ||
327 | module_exit(sh4_hac_exit); | ||
328 | |||
317 | MODULE_LICENSE("GPL"); | 329 | MODULE_LICENSE("GPL"); |
318 | MODULE_DESCRIPTION("SuperH onchip HAC (AC97) audio driver"); | 330 | MODULE_DESCRIPTION("SuperH onchip HAC (AC97) audio driver"); |
319 | MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>"); | 331 | MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>"); |
diff --git a/sound/soc/sh/ssi.c b/sound/soc/sh/ssi.c index fed544a3deff..9093588d4d07 100644 --- a/sound/soc/sh/ssi.c +++ b/sound/soc/sh/ssi.c | |||
@@ -392,6 +392,18 @@ struct snd_soc_dai sh4_ssi_dai[] = { | |||
392 | }; | 392 | }; |
393 | EXPORT_SYMBOL_GPL(sh4_ssi_dai); | 393 | EXPORT_SYMBOL_GPL(sh4_ssi_dai); |
394 | 394 | ||
395 | static int __devinit sh4_ssi_init(void) | ||
396 | { | ||
397 | return snd_soc_register_dais(sh4_ssi_dai, ARRAY_SIZE(sh4_ssi_dai)); | ||
398 | } | ||
399 | module_init(sh4_ssi_init); | ||
400 | |||
401 | static void __exit sh4_ssi_exit(void) | ||
402 | { | ||
403 | snd_soc_unregister_dais(sh4_ssi_dai, ARRAY_SIZE(sh4_ssi_dai)); | ||
404 | } | ||
405 | module_exit(sh4_ssi_exit); | ||
406 | |||
395 | MODULE_LICENSE("GPL"); | 407 | MODULE_LICENSE("GPL"); |
396 | MODULE_DESCRIPTION("SuperH onchip SSI (I2S) audio driver"); | 408 | MODULE_DESCRIPTION("SuperH onchip SSI (I2S) audio driver"); |
397 | MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>"); | 409 | MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>"); |