summaryrefslogtreecommitdiffstats
path: root/sound/soc/stm
diff options
context:
space:
mode:
authorWei Yongjun2018-01-11 12:11:51 +0100
committerMark Brown2018-01-11 13:29:27 +0100
commit6dee6722c6065f4850eab98c2b7b9f4a08a35813 (patch)
treea4e7d76791fbe4fc2c0ee6b43b8aeeac87d9c7a4 /sound/soc/stm
parentMerge branch 'topic/iio' of https://git.kernel.org/pub/scm/linux/kernel/git/b... (diff)
downloadkernel-qcow2-linux-6dee6722c6065f4850eab98c2b7b9f4a08a35813.tar.gz
kernel-qcow2-linux-6dee6722c6065f4850eab98c2b7b9f4a08a35813.tar.xz
kernel-qcow2-linux-6dee6722c6065f4850eab98c2b7b9f4a08a35813.zip
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: 55da094824c4 ("ASoC: stm32: add DFSDM DAI support") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/stm')
-rw-r--r--sound/soc/stm/stm32_adfsdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c
index af50891983c6..7306e3eca9e1 100644
--- a/sound/soc/stm/stm32_adfsdm.c
+++ b/sound/soc/stm/stm32_adfsdm.c
@@ -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);