summaryrefslogtreecommitdiff
path: root/sound/soc/stm/stm32_spdifrx.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-03-27 17:29:18 +0000
committerMark Brown <broonie@kernel.org>2020-03-27 17:29:18 +0000
commit8e3bb8ec11ed60963dbb70e69cf1a6806489dce3 (patch)
tree311171da6c49fd0aaa7812ca7962e257fd016383 /sound/soc/stm/stm32_spdifrx.c
parent16fbf79b0f83bc752cee8589279f1ebfe57b3b6e (diff)
parentf25e203070e5b12e4db366ee99b86f33a968f1ae (diff)
Merge branch 'asoc-5.6' into asoc-linus
Diffstat (limited to 'sound/soc/stm/stm32_spdifrx.c')
-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 3769d9ce5dbe..e6e75897cce8 100644
--- a/sound/soc/stm/stm32_spdifrx.c
+++ b/sound/soc/stm/stm32_spdifrx.c
@@ -1009,6 +1009,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),