aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/blackfin/bfin-eval-adav80x.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/bfin-eval-adav80x.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/bfin-eval-adav80x.c')
-rw-r--r--sound/soc/blackfin/bfin-eval-adav80x.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/blackfin/bfin-eval-adav80x.c b/sound/soc/blackfin/bfin-eval-adav80x.c
index 897cfa68a2a6..0bc995fb6283 100644
--- a/sound/soc/blackfin/bfin-eval-adav80x.c
+++ b/sound/soc/blackfin/bfin-eval-adav80x.c
@@ -157,17 +157,7 @@ static struct platform_driver bfin_eval_adav80x_driver = {
157 .id_table = bfin_eval_adav80x_ids, 157 .id_table = bfin_eval_adav80x_ids,
158}; 158};
159 159
160static int __init bfin_eval_adav80x_init(void) 160module_platform_driver(bfin_eval_adav80x_driver);
161{
162 return platform_driver_register(&bfin_eval_adav80x_driver);
163}
164module_init(bfin_eval_adav80x_init);
165
166static void __exit bfin_eval_adav80x_exit(void)
167{
168 platform_driver_unregister(&bfin_eval_adav80x_driver);
169}
170module_exit(bfin_eval_adav80x_exit);
171 161
172MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); 162MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
173MODULE_DESCRIPTION("ALSA SoC bfin adav80x driver"); 163MODULE_DESCRIPTION("ALSA SoC bfin adav80x driver");