diff options
-rw-r--r-- | sound/soc/fsl/fsl_asrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index c1a0e01cb8e7..15f8ba5c5180 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c | |||
@@ -892,7 +892,7 @@ static int fsl_asrc_probe(struct platform_device *pdev) | |||
892 | ret = fsl_asrc_init(asrc_priv); | 892 | ret = fsl_asrc_init(asrc_priv); |
893 | if (ret) { | 893 | if (ret) { |
894 | dev_err(&pdev->dev, "failed to init asrc %d\n", ret); | 894 | dev_err(&pdev->dev, "failed to init asrc %d\n", ret); |
895 | return -EINVAL; | 895 | return ret; |
896 | } | 896 | } |
897 | 897 | ||
898 | asrc_priv->channel_avail = 10; | 898 | asrc_priv->channel_avail = 10; |
@@ -901,14 +901,14 @@ static int fsl_asrc_probe(struct platform_device *pdev) | |||
901 | &asrc_priv->asrc_rate); | 901 | &asrc_priv->asrc_rate); |
902 | if (ret) { | 902 | if (ret) { |
903 | dev_err(&pdev->dev, "failed to get output rate\n"); | 903 | dev_err(&pdev->dev, "failed to get output rate\n"); |
904 | return -EINVAL; | 904 | return ret; |
905 | } | 905 | } |
906 | 906 | ||
907 | ret = of_property_read_u32(np, "fsl,asrc-width", | 907 | ret = of_property_read_u32(np, "fsl,asrc-width", |
908 | &asrc_priv->asrc_width); | 908 | &asrc_priv->asrc_width); |
909 | if (ret) { | 909 | if (ret) { |
910 | dev_err(&pdev->dev, "failed to get output width\n"); | 910 | dev_err(&pdev->dev, "failed to get output width\n"); |
911 | return -EINVAL; | 911 | return ret; |
912 | } | 912 | } |
913 | 913 | ||
914 | if (asrc_priv->asrc_width != 16 && asrc_priv->asrc_width != 24) { | 914 | if (asrc_priv->asrc_width != 16 && asrc_priv->asrc_width != 24) { |