1
0
Fork 0

ASoC: fsl_asrc: Propagate the real error code

Instead of returning -EINVAL on error, return the real error code.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
steinar/wifi_calib_4_9_kernel
Fabio Estevam 2016-08-19 10:30:59 -03:00 committed by Mark Brown
parent 6ea9c7ddd9
commit c029695085
1 changed files with 3 additions and 3 deletions

View File

@ -892,7 +892,7 @@ static int fsl_asrc_probe(struct platform_device *pdev)
ret = fsl_asrc_init(asrc_priv);
if (ret) {
dev_err(&pdev->dev, "failed to init asrc %d\n", ret);
return -EINVAL;
return ret;
}
asrc_priv->channel_avail = 10;
@ -901,14 +901,14 @@ static int fsl_asrc_probe(struct platform_device *pdev)
&asrc_priv->asrc_rate);
if (ret) {
dev_err(&pdev->dev, "failed to get output rate\n");
return -EINVAL;
return ret;
}
ret = of_property_read_u32(np, "fsl,asrc-width",
&asrc_priv->asrc_width);
if (ret) {
dev_err(&pdev->dev, "failed to get output width\n");
return -EINVAL;
return ret;
}
if (asrc_priv->asrc_width != 16 && asrc_priv->asrc_width != 24) {