aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ac97.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/ac97.c')
-rw-r--r--sound/soc/codecs/ac97.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c
index e715186b4300..1bbad4c16d28 100644
--- a/sound/soc/codecs/ac97.c
+++ b/sound/soc/codecs/ac97.c
@@ -39,7 +39,7 @@ static int ac97_prepare(struct snd_pcm_substream *substream,
39 SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 |\ 39 SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 |\
40 SNDRV_PCM_RATE_48000) 40 SNDRV_PCM_RATE_48000)
41 41
42static struct snd_soc_dai_ops ac97_dai_ops = { 42static const struct snd_soc_dai_ops ac97_dai_ops = {
43 .prepare = ac97_prepare, 43 .prepare = ac97_prepare,
44}; 44};
45 45
@@ -99,7 +99,7 @@ static int ac97_soc_remove(struct snd_soc_codec *codec)
99} 99}
100 100
101#ifdef CONFIG_PM 101#ifdef CONFIG_PM
102static int ac97_soc_suspend(struct snd_soc_codec *codec, pm_message_t msg) 102static int ac97_soc_suspend(struct snd_soc_codec *codec)
103{ 103{
104 snd_ac97_suspend(codec->ac97); 104 snd_ac97_suspend(codec->ac97);
105 105
@@ -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");