diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 14:44:52 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-24 10:45:18 +0000 |
commit | fb80297e4379640653b525e897b65b0b05a5b845 (patch) | |
tree | ccc1a3c221fc73bb6c724771f9d42e7a92d5e12a /sound/soc/blackfin/bfin-eval-adau1373.c | |
parent | 85aa0960d8ef22edbb092446559b3b700a5512ef (diff) | |
download | talos-op-linux-fb80297e4379640653b525e897b65b0b05a5b845.tar.gz talos-op-linux-fb80297e4379640653b525e897b65b0b05a5b845.zip |
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-adau1373.c')
-rw-r--r-- | sound/soc/blackfin/bfin-eval-adau1373.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/blackfin/bfin-eval-adau1373.c b/sound/soc/blackfin/bfin-eval-adau1373.c index 8df2a3b0cb36..85ed39abe10e 100644 --- a/sound/soc/blackfin/bfin-eval-adau1373.c +++ b/sound/soc/blackfin/bfin-eval-adau1373.c @@ -184,17 +184,7 @@ static struct platform_driver bfin_eval_adau1373_driver = { .remove = __devexit_p(bfin_eval_adau1373_remove), }; -static int __init bfin_eval_adau1373_init(void) -{ - return platform_driver_register(&bfin_eval_adau1373_driver); -} -module_init(bfin_eval_adau1373_init); - -static void __exit bfin_eval_adau1373_exit(void) -{ - platform_driver_unregister(&bfin_eval_adau1373_driver); -} -module_exit(bfin_eval_adau1373_exit); +module_platform_driver(bfin_eval_adau1373_driver); MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); MODULE_DESCRIPTION("ALSA SoC bfin adau1373 driver"); |