Skip to content

Commit

Permalink
ASoC: stm32: fix a typo in stm32_adfsdm_probe()
Browse files Browse the repository at this point in the history
Fix a typo, we should return PTR_ERR(priv->iio_cb) instead of
PTR_ERR(priv->iio_ch).

Fixes: 55da094 ("ASoC: stm32: add DFSDM DAI support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Wei Yongjun authored and Mark Brown committed Jan 11, 2018
1 parent 4e9436f commit 6dee672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/stm/stm32_adfsdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static int stm32_adfsdm_probe(struct platform_device *pdev)

priv->iio_cb = iio_channel_get_all_cb(&pdev->dev, NULL, NULL);
if (IS_ERR(priv->iio_cb))
return PTR_ERR(priv->iio_ch);
return PTR_ERR(priv->iio_cb);

ret = devm_snd_soc_register_platform(&pdev->dev,
&stm32_adfsdm_soc_platform);
Expand Down

0 comments on commit 6dee672

Please sign in to comment.