ASoC: stm32: fix a typo in stm32_adfsdm_probe()

Fix a typo, we should return PTR_ERR(priv->iio_cb) instead of
PTR_ERR(priv->iio_ch).

Fixes: 55da094824 ("ASoC: stm32: add DFSDM DAI support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Wei Yongjun 2018-01-11 11:11:51 +00:00 committed by Mark Brown
parent 4e9436fb84
commit 6dee6722c6
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 1 deletions

View File

@ -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); priv->iio_cb = iio_channel_get_all_cb(&pdev->dev, NULL, NULL);
if (IS_ERR(priv->iio_cb)) 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, ret = devm_snd_soc_register_platform(&pdev->dev,
&stm32_adfsdm_soc_platform); &stm32_adfsdm_soc_platform);