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/ac97.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/ac97.c')
-rw-r--r-- | sound/soc/codecs/ac97.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c index 8f3216793eb5..221ec29f68e3 100644 --- a/sound/soc/codecs/ac97.c +++ b/sound/soc/codecs/ac97.c | |||
@@ -148,17 +148,7 @@ static struct platform_driver ac97_codec_driver = { | |||
148 | .remove = __devexit_p(ac97_remove), | 148 | .remove = __devexit_p(ac97_remove), |
149 | }; | 149 | }; |
150 | 150 | ||
151 | static int __init ac97_init(void) | 151 | module_platform_driver(ac97_codec_driver); |
152 | { | ||
153 | return platform_driver_register(&ac97_codec_driver); | ||
154 | } | ||
155 | module_init(ac97_init); | ||
156 | |||
157 | static void __exit ac97_exit(void) | ||
158 | { | ||
159 | platform_driver_unregister(&ac97_codec_driver); | ||
160 | } | ||
161 | module_exit(ac97_exit); | ||
162 | 152 | ||
163 | MODULE_DESCRIPTION("Soc Generic AC97 driver"); | 153 | MODULE_DESCRIPTION("Soc Generic AC97 driver"); |
164 | MODULE_AUTHOR("Liam Girdwood"); | 154 | MODULE_AUTHOR("Liam Girdwood"); |