aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>2015-08-31 11:07:12 -0400
committerMark Brown <broonie@kernel.org>2015-08-31 11:08:50 -0400
commit6bd3c6f75e0f9baddbf1196a7e3fceabb50c7e3c (patch)
tree6bc56766bc7c9074942ed5bc12872eaef14ff6a1 /sound/soc/fsl
parent50e0ee01382b8e08289d3db209738c5856fd25cf (diff)
ASoC: fsl-asoc-card: put ASRC OF node in case of unknown device
In case of unknown DT compatible device the ASRC OF node possibly acquired earlier by of_parse_phandle() has to be put before returning from probe method. Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl-asoc-card.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 5aeb6ed4827e..96f55ae75c71 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -488,7 +488,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
488 priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM; 488 priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
489 } else { 489 } else {
490 dev_err(&pdev->dev, "unknown Device Tree compatible\n"); 490 dev_err(&pdev->dev, "unknown Device Tree compatible\n");
491 return -EINVAL; 491 ret = -EINVAL;
492 goto asrc_fail;
492 } 493 }
493 494
494 /* Common settings for corresponding Freescale CPU DAI driver */ 495 /* Common settings for corresponding Freescale CPU DAI driver */