summaryrefslogtreecommitdiff
path: root/sound/soc/stm
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-03-27 19:04:55 +0300
committerMark Brown <broonie@kernel.org>2020-03-27 19:04:55 +0300
commit8c0b6e150c5b1e6359e4f478d9fa4aaae345979d (patch)
treed2075797f14eeae103213d0563c410931f5ad33e /sound/soc/stm
parenta23d7f4a7cf1a23c68f4869477c24c0320e1e8df (diff)
parentf25e203070e5b12e4db366ee99b86f33a968f1ae (diff)
downloadlinux-8c0b6e150c5b1e6359e4f478d9fa4aaae345979d.tar.xz
Merge branch 'for-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.7
Diffstat (limited to 'sound/soc/stm')
-rw-r--r--sound/soc/stm/stm32_spdifrx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c
index ae7a0f46a6fb..1bfa3b2ba974 100644
--- a/sound/soc/stm/stm32_spdifrx.c
+++ b/sound/soc/stm/stm32_spdifrx.c
@@ -1038,6 +1038,8 @@ static int stm32_spdifrx_probe(struct platform_device *pdev)
if (idr == SPDIFRX_IPIDR_NUMBER) {
ret = regmap_read(spdifrx->regmap, STM32_SPDIFRX_VERR, &ver);
+ if (ret)
+ goto error;
dev_dbg(&pdev->dev, "SPDIFRX version: %lu.%lu registered\n",
FIELD_GET(SPDIFRX_VERR_MAJ_MASK, ver),