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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
maciejsszmigiero authored and nkskjames committed Jan 13, 2016
1 parent 7bd736a commit 80bff99
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 80bff99

Please sign in to comment.