diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 01:44:52 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 05:45:18 -0500 |
commit | fb80297e4379640653b525e897b65b0b05a5b845 (patch) | |
tree | ccc1a3c221fc73bb6c724771f9d42e7a92d5e12a /sound/soc/blackfin/bf5xx-tdm-pcm.c | |
parent | 85aa0960d8ef22edbb092446559b3b700a5512ef (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.c | 12 |
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 | ||
342 | static int __init snd_bfin_tdm_init(void) | 342 | module_platform_driver(bfin_tdm_driver); |
343 | { | ||
344 | return platform_driver_register(&bfin_tdm_driver); | ||
345 | } | ||
346 | module_init(snd_bfin_tdm_init); | ||
347 | |||
348 | static void __exit snd_bfin_tdm_exit(void) | ||
349 | { | ||
350 | platform_driver_unregister(&bfin_tdm_driver); | ||
351 | } | ||
352 | module_exit(snd_bfin_tdm_exit); | ||
353 | 343 | ||
354 | MODULE_AUTHOR("Barry Song"); | 344 | MODULE_AUTHOR("Barry Song"); |
355 | MODULE_DESCRIPTION("ADI Blackfin TDM PCM DMA module"); | 345 | MODULE_DESCRIPTION("ADI Blackfin TDM PCM DMA module"); |