aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/mxs/mxs-saif.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-24 01:21:29 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-24 05:45:18 -0500
commit85aa0960d8ef22edbb092446559b3b700a5512ef (patch)
treea020e82c3cfb2ff95369a9257a4b8425868882e7 /sound/soc/mxs/mxs-saif.c
parent880dd7210cd04205c6584922ad16b2d5731ab2c0 (diff)
ASoC: Convert mxs directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Dong Aisheng <dong.aisheng@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/mxs/mxs-saif.c')
-rw-r--r--sound/soc/mxs/mxs-saif.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c
index 46d76b52529b..1a13ab8b8e0d 100644
--- a/sound/soc/mxs/mxs-saif.c
+++ b/sound/soc/mxs/mxs-saif.c
@@ -781,18 +781,8 @@ static struct platform_driver mxs_saif_driver = {
781 }, 781 },
782}; 782};
783 783
784static int __init mxs_saif_init(void) 784module_platform_driver(mxs_saif_driver);
785{
786 return platform_driver_register(&mxs_saif_driver);
787}
788
789static void __exit mxs_saif_exit(void)
790{
791 platform_driver_unregister(&mxs_saif_driver);
792}
793 785
794module_init(mxs_saif_init);
795module_exit(mxs_saif_exit);
796MODULE_AUTHOR("Freescale Semiconductor, Inc."); 786MODULE_AUTHOR("Freescale Semiconductor, Inc.");
797MODULE_DESCRIPTION("MXS ASoC SAIF driver"); 787MODULE_DESCRIPTION("MXS ASoC SAIF driver");
798MODULE_LICENSE("GPL"); 788MODULE_LICENSE("GPL");