]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/soc/fsl/fsl_asrc.c
ASoC: fsl_asrc: Propagate the real error code
[karo-tx-linux.git] / sound / soc / fsl / fsl_asrc.c
index c1a0e01cb8e79e1007c4b9ef7117206e4c891882..15f8ba5c5180c84f687e6bba833e3d448dd683b7 100644 (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) {