diff options
-rw-r--r-- | sound/soc/s6000/s6000-i2s.c | 12 | ||||
-rw-r--r-- | sound/soc/s6000/s6000-pcm.c | 12 |
2 files changed, 2 insertions, 22 deletions
diff --git a/sound/soc/s6000/s6000-i2s.c b/sound/soc/s6000/s6000-i2s.c index 13716a9317fb..aaabdbaec19c 100644 --- a/sound/soc/s6000/s6000-i2s.c +++ b/sound/soc/s6000/s6000-i2s.c | |||
@@ -604,17 +604,7 @@ static struct platform_driver s6000_i2s_driver = { | |||
604 | }, | 604 | }, |
605 | }; | 605 | }; |
606 | 606 | ||
607 | static int __init s6000_i2s_init(void) | 607 | module_platform_driver(s6000_i2s_driver); |
608 | { | ||
609 | return platform_driver_register(&s6000_i2s_driver); | ||
610 | } | ||
611 | module_init(s6000_i2s_init); | ||
612 | |||
613 | static void __exit s6000_i2s_exit(void) | ||
614 | { | ||
615 | platform_driver_unregister(&s6000_i2s_driver); | ||
616 | } | ||
617 | module_exit(s6000_i2s_exit); | ||
618 | 608 | ||
619 | MODULE_AUTHOR("Daniel Gloeckner"); | 609 | MODULE_AUTHOR("Daniel Gloeckner"); |
620 | MODULE_DESCRIPTION("Stretch s6000 family I2S SoC Interface"); | 610 | MODULE_DESCRIPTION("Stretch s6000 family I2S SoC Interface"); |
diff --git a/sound/soc/s6000/s6000-pcm.c b/sound/soc/s6000/s6000-pcm.c index 55efc2bdf0bd..43c014f362f6 100644 --- a/sound/soc/s6000/s6000-pcm.c +++ b/sound/soc/s6000/s6000-pcm.c | |||
@@ -520,17 +520,7 @@ static struct platform_driver s6000_pcm_driver = { | |||
520 | .remove = __devexit_p(s6000_soc_platform_remove), | 520 | .remove = __devexit_p(s6000_soc_platform_remove), |
521 | }; | 521 | }; |
522 | 522 | ||
523 | static int __init snd_s6000_pcm_init(void) | 523 | module_platform_driver(s6000_pcm_driver); |
524 | { | ||
525 | return platform_driver_register(&s6000_pcm_driver); | ||
526 | } | ||
527 | module_init(snd_s6000_pcm_init); | ||
528 | |||
529 | static void __exit snd_s6000_pcm_exit(void) | ||
530 | { | ||
531 | platform_driver_unregister(&s6000_pcm_driver); | ||
532 | } | ||
533 | module_exit(snd_s6000_pcm_exit); | ||
534 | 524 | ||
535 | MODULE_AUTHOR("Daniel Gloeckner"); | 525 | MODULE_AUTHOR("Daniel Gloeckner"); |
536 | MODULE_DESCRIPTION("Stretch s6000 family PCM DMA module"); | 526 | MODULE_DESCRIPTION("Stretch s6000 family PCM DMA module"); |