summaryrefslogtreecommitdiffstats
path: root/sound/soc/blackfin/bf5xx-i2s.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 14:44:52 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-24 10:45:18 +0000
commitfb80297e4379640653b525e897b65b0b05a5b845 (patch)
treeccc1a3c221fc73bb6c724771f9d42e7a92d5e12a /sound/soc/blackfin/bf5xx-i2s.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/bf5xx-i2s.c')
-rw-r--r--sound/soc/blackfin/bf5xx-i2s.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c
index b31662e3a42..4dccf0374fe 100644
--- a/sound/soc/blackfin/bf5xx-i2s.c
+++ b/sound/soc/blackfin/bf5xx-i2s.c
@@ -288,18 +288,7 @@ static struct platform_driver bfin_i2s_driver = {
},
};
-static int __init bfin_i2s_init(void)
-{
- return platform_driver_register(&bfin_i2s_driver);
-}
-
-static void __exit bfin_i2s_exit(void)
-{
- platform_driver_unregister(&bfin_i2s_driver);
-}
-
-module_init(bfin_i2s_init);
-module_exit(bfin_i2s_exit);
+module_platform_driver(bfin_i2s_driver);
/* Module information */
MODULE_AUTHOR("Cliff Cai");