diff options
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 1868ec34be10..262d3107892e 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c | |||
@@ -443,19 +443,8 @@ static int fsl_sai_probe(struct platform_device *pdev) | |||
443 | if (ret) | 443 | if (ret) |
444 | return ret; | 444 | return ret; |
445 | 445 | ||
446 | ret = snd_dmaengine_pcm_register(&pdev->dev, NULL, | 446 | return devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, |
447 | SND_DMAENGINE_PCM_FLAG_NO_RESIDUE); | 447 | SND_DMAENGINE_PCM_FLAG_NO_RESIDUE); |
448 | if (ret) | ||
449 | return ret; | ||
450 | |||
451 | return 0; | ||
452 | } | ||
453 | |||
454 | static int fsl_sai_remove(struct platform_device *pdev) | ||
455 | { | ||
456 | snd_dmaengine_pcm_unregister(&pdev->dev); | ||
457 | |||
458 | return 0; | ||
459 | } | 448 | } |
460 | 449 | ||
461 | static const struct of_device_id fsl_sai_ids[] = { | 450 | static const struct of_device_id fsl_sai_ids[] = { |
@@ -465,8 +454,6 @@ static const struct of_device_id fsl_sai_ids[] = { | |||
465 | 454 | ||
466 | static struct platform_driver fsl_sai_driver = { | 455 | static struct platform_driver fsl_sai_driver = { |
467 | .probe = fsl_sai_probe, | 456 | .probe = fsl_sai_probe, |
468 | .remove = fsl_sai_remove, | ||
469 | |||
470 | .driver = { | 457 | .driver = { |
471 | .name = "fsl-sai", | 458 | .name = "fsl-sai", |
472 | .owner = THIS_MODULE, | 459 | .owner = THIS_MODULE, |