diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-03-21 06:34:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-26 17:57:27 -0400 |
commit | e580f1ced92e0911cce71c3cae7c6e82159c82b4 (patch) | |
tree | 2362bfdf33646aa77c536bc45691936fcec6bddb /sound/soc | |
parent | 0ba7f849eceed0564928f83aa8ec51906e69336d (diff) |
ASoC: switch over to use snd_soc_register_component() on pxa ssp
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/pxa/pxa-ssp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index d3eb0c2eec77..6f4dd7543e82 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -794,14 +794,19 @@ static struct snd_soc_dai_driver pxa_ssp_dai = { | |||
794 | .ops = &pxa_ssp_dai_ops, | 794 | .ops = &pxa_ssp_dai_ops, |
795 | }; | 795 | }; |
796 | 796 | ||
797 | static const struct snd_soc_component_driver pxa_ssp_component = { | ||
798 | .name = "pxa-ssp", | ||
799 | }; | ||
800 | |||
797 | static int asoc_ssp_probe(struct platform_device *pdev) | 801 | static int asoc_ssp_probe(struct platform_device *pdev) |
798 | { | 802 | { |
799 | return snd_soc_register_dai(&pdev->dev, &pxa_ssp_dai); | 803 | return snd_soc_register_component(&pdev->dev, &pxa_ssp_component, |
804 | &pxa_ssp_dai, 1); | ||
800 | } | 805 | } |
801 | 806 | ||
802 | static int asoc_ssp_remove(struct platform_device *pdev) | 807 | static int asoc_ssp_remove(struct platform_device *pdev) |
803 | { | 808 | { |
804 | snd_soc_unregister_dai(&pdev->dev); | 809 | snd_soc_unregister_component(&pdev->dev); |
805 | return 0; | 810 | return 0; |
806 | } | 811 | } |
807 | 812 | ||