diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-03-21 06:31:07 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-26 17:55:22 -0400 |
commit | ee226ce19557cd5dce12f818462c9c331570cac6 (patch) | |
tree | 396ade4fbbf314d43ff0151d6a57d092b8b2fea3 /sound/soc/davinci/davinci-vcif.c | |
parent | bfcb921caf37ceccb4bb474d7f426f016bf81efa (diff) |
ASoC: switch over to use snd_soc_register_component() on davinci vcif
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/davinci/davinci-vcif.c')
-rw-r--r-- | sound/soc/davinci/davinci-vcif.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sound/soc/davinci/davinci-vcif.c b/sound/soc/davinci/davinci-vcif.c index 07bde2e6f84e..30587c0cdbd2 100644 --- a/sound/soc/davinci/davinci-vcif.c +++ b/sound/soc/davinci/davinci-vcif.c | |||
@@ -204,6 +204,10 @@ static struct snd_soc_dai_driver davinci_vcif_dai = { | |||
204 | 204 | ||
205 | }; | 205 | }; |
206 | 206 | ||
207 | static const struct snd_soc_component_driver davinci_vcif_component = { | ||
208 | .name = "davinci-vcif", | ||
209 | }; | ||
210 | |||
207 | static int davinci_vcif_probe(struct platform_device *pdev) | 211 | static int davinci_vcif_probe(struct platform_device *pdev) |
208 | { | 212 | { |
209 | struct davinci_vc *davinci_vc = pdev->dev.platform_data; | 213 | struct davinci_vc *davinci_vc = pdev->dev.platform_data; |
@@ -234,7 +238,8 @@ static int davinci_vcif_probe(struct platform_device *pdev) | |||
234 | 238 | ||
235 | dev_set_drvdata(&pdev->dev, davinci_vcif_dev); | 239 | dev_set_drvdata(&pdev->dev, davinci_vcif_dev); |
236 | 240 | ||
237 | ret = snd_soc_register_dai(&pdev->dev, &davinci_vcif_dai); | 241 | ret = snd_soc_register_component(&pdev->dev, &davinci_vcif_component, |
242 | &davinci_vcif_dai, 1); | ||
238 | if (ret != 0) { | 243 | if (ret != 0) { |
239 | dev_err(&pdev->dev, "could not register dai\n"); | 244 | dev_err(&pdev->dev, "could not register dai\n"); |
240 | return ret; | 245 | return ret; |
@@ -243,7 +248,7 @@ static int davinci_vcif_probe(struct platform_device *pdev) | |||
243 | ret = davinci_soc_platform_register(&pdev->dev); | 248 | ret = davinci_soc_platform_register(&pdev->dev); |
244 | if (ret) { | 249 | if (ret) { |
245 | dev_err(&pdev->dev, "register PCM failed: %d\n", ret); | 250 | dev_err(&pdev->dev, "register PCM failed: %d\n", ret); |
246 | snd_soc_unregister_dai(&pdev->dev); | 251 | snd_soc_unregister_component(&pdev->dev); |
247 | return ret; | 252 | return ret; |
248 | } | 253 | } |
249 | 254 | ||
@@ -252,7 +257,7 @@ static int davinci_vcif_probe(struct platform_device *pdev) | |||
252 | 257 | ||
253 | static int davinci_vcif_remove(struct platform_device *pdev) | 258 | static int davinci_vcif_remove(struct platform_device *pdev) |
254 | { | 259 | { |
255 | snd_soc_unregister_dai(&pdev->dev); | 260 | snd_soc_unregister_component(&pdev->dev); |
256 | davinci_soc_platform_unregister(&pdev->dev); | 261 | davinci_soc_platform_unregister(&pdev->dev); |
257 | 262 | ||
258 | return 0; | 263 | return 0; |