diff options
Diffstat (limited to 'sound/soc/pxa/pxa2xx-ac97.c')
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index 4b0a009bd683..57ea8e6c5488 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c | |||
@@ -47,6 +47,7 @@ struct snd_ac97_bus_ops soc_ac97_ops = { | |||
47 | .warm_reset = pxa2xx_ac97_warm_reset, | 47 | .warm_reset = pxa2xx_ac97_warm_reset, |
48 | .reset = pxa2xx_ac97_cold_reset, | 48 | .reset = pxa2xx_ac97_cold_reset, |
49 | }; | 49 | }; |
50 | EXPORT_SYMBOL_GPL(soc_ac97_ops); | ||
50 | 51 | ||
51 | static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_stereo_out = { | 52 | static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_stereo_out = { |
52 | .name = "AC97 PCM Stereo out", | 53 | .name = "AC97 PCM Stereo out", |
@@ -232,7 +233,9 @@ static struct snd_soc_dai_driver pxa_ac97_dai_driver[] = { | |||
232 | }, | 233 | }, |
233 | }; | 234 | }; |
234 | 235 | ||
235 | EXPORT_SYMBOL_GPL(soc_ac97_ops); | 236 | static const struct snd_soc_component_driver pxa_ac97_component = { |
237 | .name = "pxa-ac97", | ||
238 | }; | ||
236 | 239 | ||
237 | static int pxa2xx_ac97_dev_probe(struct platform_device *pdev) | 240 | static int pxa2xx_ac97_dev_probe(struct platform_device *pdev) |
238 | { | 241 | { |
@@ -245,13 +248,13 @@ static int pxa2xx_ac97_dev_probe(struct platform_device *pdev) | |||
245 | * driver to do interesting things with the clocking to get us up | 248 | * driver to do interesting things with the clocking to get us up |
246 | * and running. | 249 | * and running. |
247 | */ | 250 | */ |
248 | return snd_soc_register_dais(&pdev->dev, pxa_ac97_dai_driver, | 251 | return snd_soc_register_component(&pdev->dev, &pxa_ac97_component, |
249 | ARRAY_SIZE(pxa_ac97_dai_driver)); | 252 | pxa_ac97_dai_driver, ARRAY_SIZE(pxa_ac97_dai_driver)); |
250 | } | 253 | } |
251 | 254 | ||
252 | static int pxa2xx_ac97_dev_remove(struct platform_device *pdev) | 255 | static int pxa2xx_ac97_dev_remove(struct platform_device *pdev) |
253 | { | 256 | { |
254 | snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(pxa_ac97_dai_driver)); | 257 | snd_soc_unregister_component(&pdev->dev); |
255 | return 0; | 258 | return 0; |
256 | } | 259 | } |
257 | 260 | ||