Skip to content

Commit

Permalink
ASoC: fsl-asoc-card: put ASRC OF node in case of unknown device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maciej S. Szmigiero authored and Mark Brown committed Aug 31, 2015
1 parent 50e0ee0 commit 6bd3c6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/fsl/fsl-asoc-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
} else {
dev_err(&pdev->dev, "unknown Device Tree compatible\n");
return -EINVAL;
ret = -EINVAL;
goto asrc_fail;
}

/* Common settings for corresponding Freescale CPU DAI driver */
Expand Down

0 comments on commit 6bd3c6f

Please sign in to comment.