diff options
Diffstat (limited to 'sound/soc/pxa/pxa2xx-ac97.c')
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index ac51c6d25c4..837ff341fd6 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c | |||
@@ -163,15 +163,15 @@ static int pxa2xx_ac97_hw_mic_params(struct snd_pcm_substream *substream, | |||
163 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 | \ | 163 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_44100 | \ |
164 | SNDRV_PCM_RATE_48000) | 164 | SNDRV_PCM_RATE_48000) |
165 | 165 | ||
166 | static struct snd_soc_dai_ops pxa_ac97_hifi_dai_ops = { | 166 | static const struct snd_soc_dai_ops pxa_ac97_hifi_dai_ops = { |
167 | .hw_params = pxa2xx_ac97_hw_params, | 167 | .hw_params = pxa2xx_ac97_hw_params, |
168 | }; | 168 | }; |
169 | 169 | ||
170 | static struct snd_soc_dai_ops pxa_ac97_aux_dai_ops = { | 170 | static const struct snd_soc_dai_ops pxa_ac97_aux_dai_ops = { |
171 | .hw_params = pxa2xx_ac97_hw_aux_params, | 171 | .hw_params = pxa2xx_ac97_hw_aux_params, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static struct snd_soc_dai_ops pxa_ac97_mic_dai_ops = { | 174 | static const struct snd_soc_dai_ops pxa_ac97_mic_dai_ops = { |
175 | .hw_params = pxa2xx_ac97_hw_mic_params, | 175 | .hw_params = pxa2xx_ac97_hw_mic_params, |
176 | }; | 176 | }; |
177 | 177 | ||
@@ -263,17 +263,7 @@ static struct platform_driver pxa2xx_ac97_driver = { | |||
263 | }, | 263 | }, |
264 | }; | 264 | }; |
265 | 265 | ||
266 | static int __init pxa_ac97_init(void) | 266 | module_platform_driver(pxa2xx_ac97_driver); |
267 | { | ||
268 | return platform_driver_register(&pxa2xx_ac97_driver); | ||
269 | } | ||
270 | module_init(pxa_ac97_init); | ||
271 | |||
272 | static void __exit pxa_ac97_exit(void) | ||
273 | { | ||
274 | platform_driver_unregister(&pxa2xx_ac97_driver); | ||
275 | } | ||
276 | module_exit(pxa_ac97_exit); | ||
277 | 267 | ||
278 | MODULE_AUTHOR("Nicolas Pitre"); | 268 | MODULE_AUTHOR("Nicolas Pitre"); |
279 | MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); | 269 | MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip"); |