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/bfin-eval-adav80x.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/bfin-eval-adav80x.c')
-rw-r--r-- | sound/soc/blackfin/bfin-eval-adav80x.c | 12 |
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 | ||
160 | static int __init bfin_eval_adav80x_init(void) | 160 | module_platform_driver(bfin_eval_adav80x_driver); |
161 | { | ||
162 | return platform_driver_register(&bfin_eval_adav80x_driver); | ||
163 | } | ||
164 | module_init(bfin_eval_adav80x_init); | ||
165 | |||
166 | static void __exit bfin_eval_adav80x_exit(void) | ||
167 | { | ||
168 | platform_driver_unregister(&bfin_eval_adav80x_driver); | ||
169 | } | ||
170 | module_exit(bfin_eval_adav80x_exit); | ||
171 | 161 | ||
172 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 162 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |
173 | MODULE_DESCRIPTION("ALSA SoC bfin adav80x driver"); | 163 | MODULE_DESCRIPTION("ALSA SoC bfin adav80x driver"); |