summaryrefslogtreecommitdiffstats
path: root/sound/soc/blackfin/bf5xx-tdm.c
diff options
context:
space:
mode:
authorAxel Lin2011-11-24 07:44:52 +0100
committerMark Brown2011-11-24 11:45:18 +0100
commitfb80297e4379640653b525e897b65b0b05a5b845 (patch)
treeccc1a3c221fc73bb6c724771f9d42e7a92d5e12a /sound/soc/blackfin/bf5xx-tdm.c
parentASoC: Convert mxs directory to module_platform_driver (diff)
downloadkernel-qcow2-linux-fb80297e4379640653b525e897b65b0b05a5b845.tar.gz
kernel-qcow2-linux-fb80297e4379640653b525e897b65b0b05a5b845.tar.xz
kernel-qcow2-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/bf5xx-tdm.c')
-rw-r--r--sound/soc/blackfin/bf5xx-tdm.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/blackfin/bf5xx-tdm.c b/sound/soc/blackfin/bf5xx-tdm.c
index 7876b5090fda..594f88217c74 100644
--- a/sound/soc/blackfin/bf5xx-tdm.c
+++ b/sound/soc/blackfin/bf5xx-tdm.c
@@ -314,17 +314,7 @@ static struct platform_driver bfin_tdm_driver = {
},
};
-static int __init bfin_tdm_init(void)
-{
- return platform_driver_register(&bfin_tdm_driver);
-}
-module_init(bfin_tdm_init);
-
-static void __exit bfin_tdm_exit(void)
-{
- platform_driver_unregister(&bfin_tdm_driver);
-}
-module_exit(bfin_tdm_exit);
+module_platform_driver(bfin_tdm_driver);
/* Module information */
MODULE_AUTHOR("Barry Song");