aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ac97.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/ac97.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/ac97.c')
-rw-r--r--sound/soc/codecs/ac97.c12
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
151static int __init ac97_init(void) 151module_platform_driver(ac97_codec_driver);
152{
153 return platform_driver_register(&ac97_codec_driver);
154}
155module_init(ac97_init);
156
157static void __exit ac97_exit(void)
158{
159 platform_driver_unregister(&ac97_codec_driver);
160}
161module_exit(ac97_exit);
162 152
163MODULE_DESCRIPTION("Soc Generic AC97 driver"); 153MODULE_DESCRIPTION("Soc Generic AC97 driver");
164MODULE_AUTHOR("Liam Girdwood"); 154MODULE_AUTHOR("Liam Girdwood");