aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9713.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 17:52:08 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-28 06:33:29 -0500
commit5bbcc3c0d0f063318ec83146d1958acf7154c66f (patch)
treef0fdcb131a8c1dd2c58b727357f897e1f15d0791 /sound/soc/codecs/wm9713.c
parentbe086aa8ca7aac8292db9f1a6a17756fb1cfda81 (diff)
ASoC: Convert CODEC drivers to module_platform_driver
Factors out a bit of boilerplate. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm9713.c')
-rw-r--r--sound/soc/codecs/wm9713.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 09360b60037c..edb598182c69 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -1277,17 +1277,7 @@ static struct platform_driver wm9713_codec_driver = {
1277 .remove = __devexit_p(wm9713_remove), 1277 .remove = __devexit_p(wm9713_remove),
1278}; 1278};
1279 1279
1280static int __init wm9713_init(void) 1280module_platform_driver(wm9713_codec_driver);
1281{
1282 return platform_driver_register(&wm9713_codec_driver);
1283}
1284module_init(wm9713_init);
1285
1286static void __exit wm9713_exit(void)
1287{
1288 platform_driver_unregister(&wm9713_codec_driver);
1289}
1290module_exit(wm9713_exit);
1291 1281
1292MODULE_DESCRIPTION("ASoC WM9713/WM9714 driver"); 1282MODULE_DESCRIPTION("ASoC WM9713/WM9714 driver");
1293MODULE_AUTHOR("Liam Girdwood"); 1283MODULE_AUTHOR("Liam Girdwood");