diff options
Diffstat (limited to 'sound/soc/fsl/mpc5200_psc_ac97.c')
-rw-r--r-- | sound/soc/fsl/mpc5200_psc_ac97.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/fsl/mpc5200_psc_ac97.c b/sound/soc/fsl/mpc5200_psc_ac97.c index a4aec0488dd3..4141b35ef0bb 100644 --- a/sound/soc/fsl/mpc5200_psc_ac97.c +++ b/sound/soc/fsl/mpc5200_psc_ac97.c | |||
@@ -270,6 +270,9 @@ static struct snd_soc_dai_driver psc_ac97_dai[] = { | |||
270 | .ops = &psc_ac97_digital_ops, | 270 | .ops = &psc_ac97_digital_ops, |
271 | } }; | 271 | } }; |
272 | 272 | ||
273 | static const struct snd_soc_component_driver psc_ac97_component = { | ||
274 | .name = DRV_NAME, | ||
275 | }; | ||
273 | 276 | ||
274 | 277 | ||
275 | /* --------------------------------------------------------------------- | 278 | /* --------------------------------------------------------------------- |
@@ -287,7 +290,8 @@ static int psc_ac97_of_probe(struct platform_device *op) | |||
287 | if (rc != 0) | 290 | if (rc != 0) |
288 | return rc; | 291 | return rc; |
289 | 292 | ||
290 | rc = snd_soc_register_dais(&op->dev, psc_ac97_dai, ARRAY_SIZE(psc_ac97_dai)); | 293 | rc = snd_soc_register_component(&op->dev, &psc_ac97_component, |
294 | psc_ac97_dai, ARRAY_SIZE(psc_ac97_dai)); | ||
291 | if (rc != 0) { | 295 | if (rc != 0) { |
292 | dev_err(&op->dev, "Failed to register DAI\n"); | 296 | dev_err(&op->dev, "Failed to register DAI\n"); |
293 | return rc; | 297 | return rc; |
@@ -313,7 +317,7 @@ static int psc_ac97_of_probe(struct platform_device *op) | |||
313 | static int psc_ac97_of_remove(struct platform_device *op) | 317 | static int psc_ac97_of_remove(struct platform_device *op) |
314 | { | 318 | { |
315 | mpc5200_audio_dma_destroy(op); | 319 | mpc5200_audio_dma_destroy(op); |
316 | snd_soc_unregister_dais(&op->dev, ARRAY_SIZE(psc_ac97_dai)); | 320 | snd_soc_unregister_component(&op->dev); |
317 | return 0; | 321 | return 0; |
318 | } | 322 | } |
319 | 323 | ||