aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/blackfin/bf5xx-tdm-pcm.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 01:44:52 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-24 05:45:18 -0500
commitfb80297e4379640653b525e897b65b0b05a5b845 (patch)
treeccc1a3c221fc73bb6c724771f9d42e7a92d5e12a /sound/soc/blackfin/bf5xx-tdm-pcm.c
parent85aa0960d8ef22edbb092446559b3b700a5512ef (diff)
ASoC: Convert blackfin directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/blackfin/bf5xx-tdm-pcm.c')
-rw-r--r--sound/soc/blackfin/bf5xx-tdm-pcm.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/blackfin/bf5xx-tdm-pcm.c b/sound/soc/blackfin/bf5xx-tdm-pcm.c
index c95cc03d583d..4406f9a865ae 100644
--- a/sound/soc/blackfin/bf5xx-tdm-pcm.c
+++ b/sound/soc/blackfin/bf5xx-tdm-pcm.c
@@ -339,17 +339,7 @@ static struct platform_driver bfin_tdm_driver = {
339 .remove = __devexit_p(bf5xx_soc_platform_remove), 339 .remove = __devexit_p(bf5xx_soc_platform_remove),
340}; 340};
341 341
342static int __init snd_bfin_tdm_init(void) 342module_platform_driver(bfin_tdm_driver);
343{
344 return platform_driver_register(&bfin_tdm_driver);
345}
346module_init(snd_bfin_tdm_init);
347
348static void __exit snd_bfin_tdm_exit(void)
349{
350 platform_driver_unregister(&bfin_tdm_driver);
351}
352module_exit(snd_bfin_tdm_exit);
353 343
354MODULE_AUTHOR("Barry Song"); 344MODULE_AUTHOR("Barry Song");
355MODULE_DESCRIPTION("ADI Blackfin TDM PCM DMA module"); 345MODULE_DESCRIPTION("ADI Blackfin TDM PCM DMA module");