diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-12 08:56:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-12 08:56:56 -0400 |
commit | 13419625774f9f3e65e07257ad2a7beb445e9942 (patch) | |
tree | e106f4be80e6c8f6cc3be861cd555718a3142ab7 /sound/soc/nuc900/nuc900-ac97.c | |
parent | 604c724ba38f6ecc82c9023bee692a7b2fb7e0ee (diff) | |
parent | 89cab4624a8c0ed81a1b74b6f8c884641cac5b9d (diff) |
Merge remote-tracking branch 'asoc/topic/component' into asoc-next
Diffstat (limited to 'sound/soc/nuc900/nuc900-ac97.c')
-rw-r--r-- | sound/soc/nuc900/nuc900-ac97.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/nuc900/nuc900-ac97.c b/sound/soc/nuc900/nuc900-ac97.c index 0418467a4848..fe3285ceaf5b 100644 --- a/sound/soc/nuc900/nuc900-ac97.c +++ b/sound/soc/nuc900/nuc900-ac97.c | |||
@@ -314,6 +314,10 @@ static struct snd_soc_dai_driver nuc900_ac97_dai = { | |||
314 | .ops = &nuc900_ac97_dai_ops, | 314 | .ops = &nuc900_ac97_dai_ops, |
315 | }; | 315 | }; |
316 | 316 | ||
317 | static const struct snd_soc_component_driver nuc900_ac97_component = { | ||
318 | .name = "nuc900-ac97", | ||
319 | }; | ||
320 | |||
317 | static int nuc900_ac97_drvprobe(struct platform_device *pdev) | 321 | static int nuc900_ac97_drvprobe(struct platform_device *pdev) |
318 | { | 322 | { |
319 | struct nuc900_audio *nuc900_audio; | 323 | struct nuc900_audio *nuc900_audio; |
@@ -361,7 +365,8 @@ static int nuc900_ac97_drvprobe(struct platform_device *pdev) | |||
361 | 365 | ||
362 | nuc900_ac97_data = nuc900_audio; | 366 | nuc900_ac97_data = nuc900_audio; |
363 | 367 | ||
364 | ret = snd_soc_register_dai(&pdev->dev, &nuc900_ac97_dai); | 368 | ret = snd_soc_register_component(&pdev->dev, &nuc900_ac97_component, |
369 | &nuc900_ac97_dai, 1); | ||
365 | if (ret) | 370 | if (ret) |
366 | goto out3; | 371 | goto out3; |
367 | 372 | ||
@@ -384,7 +389,7 @@ out0: | |||
384 | 389 | ||
385 | static int nuc900_ac97_drvremove(struct platform_device *pdev) | 390 | static int nuc900_ac97_drvremove(struct platform_device *pdev) |
386 | { | 391 | { |
387 | snd_soc_unregister_dai(&pdev->dev); | 392 | snd_soc_unregister_component(&pdev->dev); |
388 | 393 | ||
389 | clk_put(nuc900_ac97_data->clk); | 394 | clk_put(nuc900_ac97_data->clk); |
390 | iounmap(nuc900_ac97_data->mmio); | 395 | iounmap(nuc900_ac97_data->mmio); |