aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/s6000/s6000-pcm.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-23 23:14:56 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-24 05:45:14 -0500
commit880dd7210cd04205c6584922ad16b2d5731ab2c0 (patch)
tree15e25faa8c2af3a4323cde23513298b6e5482f94 /sound/soc/s6000/s6000-pcm.c
parentee18f6314fa16376d53c29ecf9704011f2ce8180 (diff)
ASoC: Convert s6000 directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Daniel Glöckner <dg@emlix.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s6000/s6000-pcm.c')
-rw-r--r--sound/soc/s6000/s6000-pcm.c12
1 files changed, 1 insertions, 11 deletions
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
523static int __init snd_s6000_pcm_init(void) 523module_platform_driver(s6000_pcm_driver);
524{
525 return platform_driver_register(&s6000_pcm_driver);
526}
527module_init(snd_s6000_pcm_init);
528
529static void __exit snd_s6000_pcm_exit(void)
530{
531 platform_driver_unregister(&s6000_pcm_driver);
532}
533module_exit(snd_s6000_pcm_exit);
534 524
535MODULE_AUTHOR("Daniel Gloeckner"); 525MODULE_AUTHOR("Daniel Gloeckner");
536MODULE_DESCRIPTION("Stretch s6000 family PCM DMA module"); 526MODULE_DESCRIPTION("Stretch s6000 family PCM DMA module");