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/bf5xx-ac97.c | |
parent | 85aa0960d8ef22edbb092446559b3b700a5512ef (diff) | |
download | linux-stable-fb80297e4379640653b525e897b65b0b05a5b845.tar.gz linux-stable-fb80297e4379640653b525e897b65b0b05a5b845.tar.bz2 linux-stable-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/bf5xx-ac97.c')
-rw-r--r-- | sound/soc/blackfin/bf5xx-ac97.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index 6d2162590889..f4e9dc4e262e 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c @@ -375,18 +375,7 @@ static struct platform_driver asoc_bfin_ac97_driver = { .remove = __devexit_p(asoc_bfin_ac97_remove), }; -static int __init bfin_ac97_init(void) -{ - return platform_driver_register(&asoc_bfin_ac97_driver); -} -module_init(bfin_ac97_init); - -static void __exit bfin_ac97_exit(void) -{ - platform_driver_unregister(&asoc_bfin_ac97_driver); -} -module_exit(bfin_ac97_exit); - +module_platform_driver(asoc_bfin_ac97_driver); MODULE_AUTHOR("Roy Huang"); MODULE_DESCRIPTION("AC97 driver for ADI Blackfin"); |