diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-23 17:52:08 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-28 06:33:29 -0500 |
commit | 5bbcc3c0d0f063318ec83146d1958acf7154c66f (patch) | |
tree | f0fdcb131a8c1dd2c58b727357f897e1f15d0791 /sound/soc/codecs/wm9713.c | |
parent | be086aa8ca7aac8292db9f1a6a17756fb1cfda81 (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.c | 12 |
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 | ||
1280 | static int __init wm9713_init(void) | 1280 | module_platform_driver(wm9713_codec_driver); |
1281 | { | ||
1282 | return platform_driver_register(&wm9713_codec_driver); | ||
1283 | } | ||
1284 | module_init(wm9713_init); | ||
1285 | |||
1286 | static void __exit wm9713_exit(void) | ||
1287 | { | ||
1288 | platform_driver_unregister(&wm9713_codec_driver); | ||
1289 | } | ||
1290 | module_exit(wm9713_exit); | ||
1291 | 1281 | ||
1292 | MODULE_DESCRIPTION("ASoC WM9713/WM9714 driver"); | 1282 | MODULE_DESCRIPTION("ASoC WM9713/WM9714 driver"); |
1293 | MODULE_AUTHOR("Liam Girdwood"); | 1283 | MODULE_AUTHOR("Liam Girdwood"); |