aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x/dbdma2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/au1x/dbdma2.c')
-rw-r--r--sound/soc/au1x/dbdma2.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/sound/soc/au1x/dbdma2.c b/sound/soc/au1x/dbdma2.c
index 6d9f4c624949..00fdb9cbfc2d 100644
--- a/sound/soc/au1x/dbdma2.c
+++ b/sound/soc/au1x/dbdma2.c
@@ -329,7 +329,7 @@ static int au1xpsc_pcm_new(struct snd_card *card,
329 return 0; 329 return 0;
330} 330}
331 331
332static int au1xpsc_pcm_probe(struct platform_device *pdev) 332static int au1xpsc_pcm_probe(struct snd_soc_platform *platform)
333{ 333{
334 if (!au1xpsc_audio_pcmdma[PCM_TX] || !au1xpsc_audio_pcmdma[PCM_RX]) 334 if (!au1xpsc_audio_pcmdma[PCM_TX] || !au1xpsc_audio_pcmdma[PCM_RX])
335 return -ENODEV; 335 return -ENODEV;
@@ -337,17 +337,10 @@ static int au1xpsc_pcm_probe(struct platform_device *pdev)
337 return 0; 337 return 0;
338} 338}
339 339
340static int au1xpsc_pcm_remove(struct platform_device *pdev)
341{
342 return 0;
343}
344
345/* au1xpsc audio platform */ 340/* au1xpsc audio platform */
346struct snd_soc_platform au1xpsc_soc_platform = { 341struct snd_soc_platform_driver au1xpsc_soc_platform = {
347 .name = "au1xpsc-pcm-dbdma",
348 .probe = au1xpsc_pcm_probe, 342 .probe = au1xpsc_pcm_probe,
349 .remove = au1xpsc_pcm_remove, 343 .ops = &au1xpsc_pcm_ops,
350 .pcm_ops = &au1xpsc_pcm_ops,
351 .pcm_new = au1xpsc_pcm_new, 344 .pcm_new = au1xpsc_pcm_new,
352 .pcm_free = au1xpsc_pcm_free_dma_buffers, 345 .pcm_free = au1xpsc_pcm_free_dma_buffers,
353}; 346};
@@ -387,7 +380,7 @@ static int __devinit au1xpsc_pcm_drvprobe(struct platform_device *pdev)
387 } 380 }
388 (au1xpsc_audio_pcmdma[PCM_RX])->ddma_id = r->start; 381 (au1xpsc_audio_pcmdma[PCM_RX])->ddma_id = r->start;
389 382
390 ret = snd_soc_register_platform(&au1xpsc_soc_platform); 383 ret = snd_soc_register_platform(&pdev->dev, &au1xpsc_soc_platform);
391 if (!ret) 384 if (!ret)
392 return ret; 385 return ret;
393 386
@@ -404,7 +397,7 @@ static int __devexit au1xpsc_pcm_drvremove(struct platform_device *pdev)
404{ 397{
405 int i; 398 int i;
406 399
407 snd_soc_unregister_platform(&au1xpsc_soc_platform); 400 snd_soc_unregister_platform(&pdev->dev);
408 401
409 for (i = 0; i < 2; i++) { 402 for (i = 0; i < 2; i++) {
410 if (au1xpsc_audio_pcmdma[i]) { 403 if (au1xpsc_audio_pcmdma[i]) {
@@ -419,7 +412,7 @@ static int __devexit au1xpsc_pcm_drvremove(struct platform_device *pdev)
419 412
420static struct platform_driver au1xpsc_pcm_driver = { 413static struct platform_driver au1xpsc_pcm_driver = {
421 .driver = { 414 .driver = {
422 .name = "au1xpsc-pcm", 415 .name = "au1xpsc-pcm-audio",
423 .owner = THIS_MODULE, 416 .owner = THIS_MODULE,
424 }, 417 },
425 .probe = au1xpsc_pcm_drvprobe, 418 .probe = au1xpsc_pcm_drvprobe,