diff options
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index c8e97dcbfff4..86918ee12419 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -898,6 +898,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev) | |||
898 | res = platform_get_resource(pdev, IORESOURCE_DMA, 0); | 898 | res = platform_get_resource(pdev, IORESOURCE_DMA, 0); |
899 | if (!res) { | 899 | if (!res) { |
900 | dev_err(&pdev->dev, "no DMA resource\n"); | 900 | dev_err(&pdev->dev, "no DMA resource\n"); |
901 | ret = -ENODEV; | ||
901 | goto err_release_region; | 902 | goto err_release_region; |
902 | } | 903 | } |
903 | 904 | ||
@@ -912,6 +913,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev) | |||
912 | res = platform_get_resource(pdev, IORESOURCE_DMA, 1); | 913 | res = platform_get_resource(pdev, IORESOURCE_DMA, 1); |
913 | if (!res) { | 914 | if (!res) { |
914 | dev_err(&pdev->dev, "no DMA resource\n"); | 915 | dev_err(&pdev->dev, "no DMA resource\n"); |
916 | ret = -ENODEV; | ||
915 | goto err_release_region; | 917 | goto err_release_region; |
916 | } | 918 | } |
917 | 919 | ||