Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 6dee6722 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

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: 55da0948 ("ASoC: stm32: add DFSDM DAI support")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4e9436fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);